cannot access settings from administration
Added by Matias Foltas over 11 years ago
OOps, found the problem, apparently I was using the wrong settings.yml file. Took the original one from the .tar.gz, restarted everything and it's working. Sorry for the trouble.
Matias
Hi,
I already serched and found similar problems, but the solutions did not resolve my problem.
When I try to access the settings page from the administration menu, I get a page stating:
"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"
It doesn't matter what user try to access it. below some information about the system I'm running:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"
Server version: Apache/2.2.22 (Ubuntu)
mysql --version
mysql Ver 14.14 Distrib 5.5.29, for debian-linux-gnu (x86_64) using readline 6.2
RAILS_ENV=production script/about
Environment:
Redmine version 2.3.3.stable
Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
redmine_wiki_unc 0.0.3
database.yml
production:
adapter: mysql2
database: redmine_default
host: localhost
port:
username: redmine
password: admin
encoding: utf8
error log:
Current user: admin (id=1)
Rendered settings/_general.html.erb (19.9ms)
Rendered settings/_display.html.erb (16.4ms)
Rendered common/_tabs.html.erb (47.7ms)
Rendered settings/edit.html.erb within layouts/admin (244.1ms)
Completed 500 Internal Server Error in 501ms
ActionView::Template::Error (undefined method `thumbnails_enabled?' for #<Class:0x000000043e2098>):
17:
18: <p><%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid'], ["Retro", 'retro'], $
19:
20: <p><%= setting_check_box :thumbnails_enabled ></p>
21:
22: <p><= setting_text_field :thumbnails_size, :size => 6 %></p>
23: </div>
app/helpers/settings_helper.rb:77:in `setting_check_box'
app/views/settings/_display.html.erb:20:in `block in app_views_settings_display_html_erb__1158621067785231087_52043960'
app/views/settings/_display.html.erb:1:in `_app_views_settings__display_html_erb__1158621067785231087_52043960'
app/views/common/_tabs.html.erb:24:in `block in app_views_common_tabs_html_erb___3199072803410945017_35114000'
app/views/common/_tabs.html.erb:23:in `each'
app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb___3199072803410945017_35114000'
app/helpers/application_helper.rb:271:in `render_tabs'
app/views/settings/edit.html.erb:3:in `_app_views_settings_edit_html_erb__239025381032298201_43931580'
app/controllers/settings_controller.rb:28:in `index'
This all happened after an upgrading from ruby 1.8.7 and redmine 1.4, which was working fine.
I don't know if it is related to this problem, but when I try to access Gantt from projects, I get the same message, but with a different log error:
Started GET "/projects/encomendas/issues/gantt" for 192.168.10.44 at 2013-10-30 13:51:41 -0200
Processing by GanttsController#show as HTML
Parameters: {"project_id"=>"encomendas"}
Current user: matfoltas (id=3)
Rendered queries/_filters.html.erb (33.6ms)
Rendered gantts/show.html.erb within layouts/base (630.0ms)
Completed 500 Internal Server Error in 935ms
ActionView::Template::Error (undefined method `non_working_week_days' for #<Class:0x000000043e2098>):
235: style += "height: #{height}px;"
236: style += "font-size:0.7em;"
237: clss = "gantt_hdr"
238: clss << " nwday" if @gantt.non_working_week_days.include?(wday)
239: >
240: <= content_tag(:div, :style => style, :class => clss) do >
241: <= day_letter(wday) %>
lib/redmine/utils.rb:108:in `non_working_week_days'
app/views/gantts/show.html.erb:238:in `block in app_views_gantts_show_html_erb__1777096233196001791_51780960'
app/views/gantts/show.html.erb:228:in `times'
app/views/gantts/show.html.erb:228:in `_app_views_gantts_show_html_erb___1777096233196001791_51780960'
app/controllers/gantts_controller.rb:43:in `block (2 levels) in show'
app/controllers/gantts_controller.rb:42:in `show'
Thanks in advance for your help
Matias