Project

General

Profile

Redmine Plugin People - undefined local variable or method `current_theme'

Added by jerome b almost 10 years ago

Hello,

Since i use the Redmine plugin People (http://www.redmine.org/plugins/people), i have this error thats occurs (when i modify my personal plugin controller, for example) :


ActionView::Template::Error (undefined local variable or method `current_theme' for #<#<Class:0x00000107bfb028>:0x00000107bfa100>):
6: <meta name="description" content="<%= Redmine::Info.app_name %>" />
7: <meta name="keywords" content="issue,bug,tracker" />
8: <%= csrf_meta_tag %>
9: <%= favicon %>
10: <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %>
11: <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
12: <%= javascript_heads %>
app/helpers/application_helper.rb:1278:in `favicon_path'
app/helpers/application_helper.rb:1273:in `favicon'

I use redmine 2.1 and People plugin v.0.1.8

Thanks :)


Replies (2)

RE: Redmine Plugin People - undefined local variable or method `current_theme' - Added by Eric Le Guellaut almost 10 years ago

Hello,

I work with Jerome, and use the Redmin plugin People too (same config: redmine 2.1, plugi v1.0.8). I have the same error he describe (undefined 'current theme' when I save my controller), and had (only one time) this error (I am searching how to reproduce this one):

ActionView::Template::Error (undefined method `call_hook' for #<#<Class:0x5dd9ea8>:0x5da4100>):
1: <%= call_hook :view_account_login_top >
2: <div id="login-form">
3: <
= form_tag(signin_path) do >
4: <
= back_url_hidden_field_tag %>
app/views/account/login.html.erb:1:in `_app_views_account_login_html_erb__287803942_55628244'

I use Rails 3.2.13 and ruby 1.9.3

Thanks

RE: Redmine Plugin People - undefined local variable or method `current_theme' - Added by Jan Strnádek about 9 years ago

Iam sorry, this can be quite offtopic, but I have the same problem... (and I don't use People plugin!) it occures just once, until I restart the server. I am looking for my last action and I modify MyController patch in plugin and reconfigure routes. Maybe it's problem in development environment in some reloading lib directory magic, where is current_theme defined...

    (1-2/2)