Internal Error when accessing wiki (after upgrade)
Added by Tucker Watson almost 16 years ago
I moved from 0.7.3 to 0.8.0 and everything appeared to go smoothly except the Wiki. On all projects, accessing the wiki returns:
"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."
I found this in the log:
Processing WikiController#index (for 98.27.13.68 at 2009-02-11 13:32:30) [GET] Session ID: 85a9e32b24008b26ea7d7fbc7a65ba9e Parameters: {"action"=>"index", "id"=>"periscope", "controller"=>"wiki"} NoMethodError (undefined method `protected?' for #<WikiPage:0x44764c8>): /vendor/rails/activerecord/lib/active_record/attribute_methods.rb:251:in `method_missing' /app/models/wiki_page.rb:112:in `editable_by?' /app/controllers/wiki_controller.rb:209:in `editable?' /app/controllers/wiki_controller.rb:56:in `index' /vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching' /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache' /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process' /vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch' /vendor/rails/railties/lib/webrick_server.rb:112:in `handle_dispatch' /vendor/rails/railties/lib/webrick_server.rb:78:in `service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' /vendor/rails/railties/lib/webrick_server.rb:62:in `dispatch' /vendor/rails/railties/lib/commands/servers/webrick.rb:66 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require' /vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in' /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require' /vendor/rails/railties/lib/commands/server.rb:39 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3
Any idea what I broke? Thanks!
Replies (3)
RE: Internal Error when accessing wiki (after upgrade) - Added by Shantanu Kangude over 15 years ago
I got the same. We forgot to "Migrate" the database. Check the upgrade instructions again.
run the following, and it will start working. It did for me.
rake db:migrate RAILS_ENV="Production"
RE: Internal Error when accessing wiki (after upgrade) - Added by Abhishek Singh about 15 years ago
Even though after doing a db migration, i get the same "Internal Error". All the other features seem to be working. Any idea about that?
RE: Internal Error when accessing wiki (after upgrade) - Added by R. Duval about 15 years ago
Same here as exposed in Wiki issues after upgrading from 0.7.3 to .0.8.4
The rake db:migrate was executed but just new wiki pages don't work.