Project

General

Profile

No access to Admin's "Settings"

Added by Stan Desteam about 11 years ago

Hi,

I have a problem when I'm trying to access to Administrator Settings on Redmine.
I'm loggin as Admin but when I click on "settings" I have this message

"Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back"

So When I read production.log, I have this message:

  1. tail -35 production.log
    Rendered admin/_menu.html.erb (3.5ms)
    Rendered admin/index.html.erb within layouts/admin (6.8ms)
    Rendered layouts/base.html.erb (7.4ms)
    Completed 200 OK in 36ms (Views: 32.4ms | ActiveRecord: 1.0ms)
    Started GET "/settings" for 192.168.0.22 at 2013-06-13 11:56:13 +0200
    Processing by SettingsController#index as HTML
    Current user: admin (id=1)
    Rendered settings/_general.html.erb (5.3ms)
    Rendered settings/_display.html.erb (5.7ms)
    Rendered settings/_authentication.html.erb (4.5ms)
    Rendered settings/_projects.html.erb (4.6ms)
    Rendered settings/_issues.html.erb (3.4ms)
    Rendered common/_tabs.html.erb (46.6ms)
    Rendered settings/edit.html.erb within layouts/admin (48.7ms)
    Completed 500 Internal Server Error in 60ms

ActionView::Template::Error (undefined method `non_working_week_days' for #<Class:0x00000012d99448>):
13:
14: <p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} ></p>
15:
16: <p><
= setting_multiselect :non_working_week_days, (1..7).map {|d| [day_name(d), d.to_s]}, :inline => true ></p>
17:
18: <p><
= setting_text_field :issues_export_limit, :size => 6 %></p>
19:
app/helpers/settings_helper.rb:44:in `setting_multiselect'
app/views/settings/_issues.html.erb:16:in `block in app_views_settings_issues_html_erb__2244954622916775785_181563480'
app/views/settings/_issues.html.erb:1:in `_app_views_settings__issues_html_erb__2244954622916775785_181563480'
app/views/common/_tabs.html.erb:24:in `block in app_views_common_tabs_html_erb__2025202916321033314_183014020'
app/views/common/_tabs.html.erb:23:in `each'
app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb__2025202916321033314_183014020'
app/helpers/application_helper.rb:263:in `render_tabs'
app/views/settings/edit.html.erb:3:in `_app_views_settings_edit_html_erb___2544599005512320879_183032140'
app/controllers/settings_controller.rb:26:in `index'


Replies (2)

RE: No access to Admin's "Settings" - Added by Stan Desteam about 11 years ago

If someone have a solution to fix it, it could be fine for other people ;)

Me I didn't fix this problem, so, I decided to change the settings directly on the SQLite database...

RE: No access to Admin's "Settings" - Added by jerome l about 11 years ago

Hi
I had the same problem and solved it by running webrick and connecting to the admin page.

then save once

and return on apache site, it works

don't ask me what has caused this, I don't know :)

hope it helps

    (1-2/2)