Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionView::Template::Error (undefined local variable or method `label_for_cas_login' #22

Open
lhadjadj opened this issue Mar 7, 2019 · 2 comments

Comments

@lhadjadj
Copy link

lhadjadj commented Mar 7, 2019

Hello, thank you for your plugin, it's the only one I found and who
operate with Redmine 3.3.9,
when I load the plugin "Redmine Login Audit 0.3.3" at https://github.com/martin-denizet/redmine_login_audit, the login link does not work, I have a 500 error, see the diary below.

I also tried with version 3.4.9 and version 4.0 of redmine without success. I did not succeed in correcting the problems.

Do you think you can fix the problem?

I thank you in advance.

My environment

Environment:
  Redmine version           3.3.9.stable
  Ruby version                 2.3.0-p0 (2015-12-25) [x86_64-linux]
  Rails version                  4.2.11
  Environment                 production
  Database adapter         Mysql2
SCM:
  Git                                 2.1.4
  Filesystem                     
Redmine plugins:
  redmine_omniauth_cas      3.3.0
  redmine_xls_export            0.2.1.t11
  sidebar_hide                      0.0.8

I have the same error with the 0.1.2 3.4.6 or master source.

ActionView::Template::Error (undefined local variable or method `label_for_cas_login' for #<#Class:0x00563271334538:0x007fd105a32310>
Did you mean? labelled_form_for):

The log

Processing by AccountController#login as HTML
  Current user: anonymous
  Rendered plugins/redmine_omniauth_cas/app/views/redmine_omniauth_cas/_view_account_login_top.html.erb (55.3ms)
  Rendered account/login.html.erb within layouts/base (55.7ms)
Completed 500 Internal Server Error in 58ms (ActiveRecord: 0.2ms)

ActionView::Template::Error (undefined local variable or method `label_for_cas_login' for #<#<Class:0x00563271334538>:0x007fd105a32310>
Did you mean?  labelled_form_for):
    11:     #(it happens for me at work with 2 reverse-proxies in front of the app...)
    12:     @back_url = CGI.unescape(@back_url) if @back_url && @back_url.match(/^https?%3A/)
    13:   %>
    14:   <%= link_to label_for_cas_login, :controller => "account", :action => "login_with_cas_redirect", :provider => "cas", :origin => @back_url %>
    15: </div>
    16:
    17: <% end %>
  plugins/redmine_omniauth_cas/app/views/redmine_omniauth_cas/_view_account_login_top.html.erb:14:in `_plugins_redmine_omniauth_cas_app_views_redmine_omniauth_cas__view_account_login_top_html_erb__519223562586077569_47387324155000'
  lib/redmine/hook/view_listener.rb:59:in `block (2 levels) in render_on'
  lib/redmine/hook/view_listener.rb:57:in `map'
  lib/redmine/hook/view_listener.rb:57:in `block in render_on'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:96:in `call_hook'
  app/views/account/login.html.erb:1:in `_app_views_account_login_html_erb__689247372787559154_47387323859960'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
@nanego
Copy link
Collaborator

nanego commented Mar 8, 2019

Hello
Does it work well if you remove the redmine_login_audit plugin?

@lhadjadj
Copy link
Author

Yes it works well and i would like to get each.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants