Internal error when viewing settings page after upgrade from 1.2.1 to 2.4.6
Added by Jonathan Romero over 10 years ago
Following the upgrade I receive the following error when accessing the settings page.
Processing by SettingsController#index as HTML Current user: gonzales (id=13) Rendered settings/_general.html.erb (95.2ms) Rendered settings/_display.html.erb (537.2ms) Rendered common/_tabs.html.erb (637.0ms) Rendered settings/edit.html.erb within layouts/admin (637.9ms) Completed 500 Internal Server Error in 643.7ms ActionView::Template::Error (wrong number of arguments (2 for 1)): 3: <div class="box tabular settings"> 4: <p><%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, :blank => :label_default, :label => :label_theme %></p> 5: 6: <p><%= setting_select :default_language, lang_options_for_select(false) %></p> 7: 8: <p><%= setting_select :start_of_week, [[day_name(1),'1'], [day_name(6),'6'], [day_name(7),'7']], :blank => :label_language_based %></p> 9: <% locale = User.current.language.blank? ? ::I18n.locale : User.current.language %> lib/redmine/i18n.rb:95:in `languages_options' app/helpers/application_helper.rb:962:in `lang_options_for_select' app/views/settings/_display.html.erb:6:in `_app_views_settings__display_html_erb___1664523194_23770648527460' app/views/settings/_display.html.erb:1:in `_app_views_settings__display_html_erb___1664523194_23770648527460' app/views/common/_tabs.html.erb:24:in `_app_views_common__tabs_html_erb___348985015_23770647021720' app/views/common/_tabs.html.erb:23:in `each' app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb___348985015_23770647021720' app/helpers/application_helper.rb:272:in `render_tabs' app/views/settings/edit.html.erb:3:in `_app_views_settings_edit_html_erb___981239292_23770647032380' app/controllers/settings_controller.rb:28:in `index'
Information about installation:
Environment: Redmine version 2.4.6.stable Ruby version 1.8.7-p0 (2008-05-31) [x86_64-linux] Rails version 3.2.19 Environment production Database adapter MySQL SCM: Subversion 1.6.11 Git 1.7.5 Filesystem Redmine plugins: no plugin installed
Any suggestions on what I should check first? Cheers.
Replies (6)
RE: Internal error when viewing settings page after upgrade from 1.2.1 to 2.4.6
-
Added by Martin Denizet (redmine.org team member) over 10 years ago
Are you sure of the integrity of your install?
If you used SVN to install you can try:
cd /path/to/redmine svn status
Cheers,
RE: Internal error when viewing settings page after upgrade from 1.2.1 to 2.4.6
-
Added by Jonathan Romero over 10 years ago
The installation was done via tarball. Copied over individual config files per RedmineUpgrade.
RE: Internal error when viewing settings page after upgrade from 1.2.1 to 2.4.6
-
Added by Martin Denizet (redmine.org team member) over 10 years ago
It seems to be linked to themes. Did you install extra themes? If yes, you may try to remove them to see if it solves the problem.
Cheers,
RE: Internal error when viewing settings page after upgrade from 1.2.1 to 2.4.6
-
Added by Jonathan Romero over 10 years ago
That seems likely.
There was a custom theme in place prior to the upgrade. Can you point me to a doc on how to disable the custom theme?
I imagine I will need to manipulate something in the database.
Cheers,
JonnyRo
RE: Internal error when viewing settings page after upgrade from 1.2.1 to 2.4.6
-
Added by Martin Denizet (redmine.org team member) over 10 years ago
I think you can just try to move your custom theme, Redmine should fallback on default theme.
RE: Internal error when viewing settings page after upgrade from 1.2.1 to 2.4.6
-
Added by Jonathan Romero over 10 years ago
It turns out the issue has nothing to do with the upgrade.
Installing a pristine copy of 2.4.5 exhibits the same error.
I think it has more to do with running redmine on an old version of ruby (1.8.7)
On the same system I have been able to get ruby 1.9.3 and redmine 2.4.5 working.