Solved] Wiki edit error after delete a few project
Added by Chung Jinwon about 10 years ago
I didn't uninstall plugin correctly. solved after remove plugins/redmine_screenshot_paste.
--------------------------------------------------------------
Wiki edit error occurred after a few project deletion and install/uninstall redmine_screenshot_paste plug-in
but new wiki page creation works fine.
The environment is:
Environment: Redmine version 3.0.1.stable Ruby version 2.0.0-p598 (2014-11-13) [x86_64-linux] Rails version 4.2.0 Environment production Database adapter Mysql2 Redmine plugins: redmine_ckeditor 1.1.1 redmine_helpdesk 0.0.15 redmine_screenshot_paste 2.1.0
And the error I'm getting in the production.log is:
I, [2015-11-12T21:47:25.550589 #1048] INFO -- : Started GET "/projects/method-etc/wiki/Wiki/edit" for 125.131.184.26 at 2015-11-12 21:47:25 +0900
I, [2015-11-12T21:47:25.551649 #1048] INFO -- : Processing by WikiController#edit as HTML
I, [2015-11-12T21:47:25.551758 #1048] INFO -- : Parameters: {"project_id"=>"method-etc", "id"=>"Wiki"}
D, [2015-11-12T21:47:25.552791 #1048] DEBUG -- : (0.1ms) SELECT MAX(`settings`.`updated_on`) FROM `settings`
D, [2015-11-12T21:47:25.553757 #1048] DEBUG -- : User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`status` = 1 AND `users`.`id` = 81 LIMIT 1
I, [2015-11-12T21:47:25.554132 #1048] INFO -- : Current user: jinwon.chung@methodinc.co.kr (id=81)
D, [2015-11-12T21:47:25.554668 #1048] DEBUG -- : Project Load (0.1ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`identifier` = 'method-etc' LIMIT 1
D, [2015-11-12T21:47:25.555396 #1048] DEBUG -- : Wiki Load (0.1ms) SELECT `wikis`.* FROM `wikis` WHERE `wikis`.`project_id` = 23 LIMIT 1
D, [2015-11-12T21:47:25.556295 #1048] DEBUG -- : (0.1ms) SELECT `enabled_modules`.`name` FROM `enabled_modules` WHERE `enabled_modules`.`project_id` = 23
D, [2015-11-12T21:47:25.557681 #1048] DEBUG -- : WikiPage Load (0.1ms) SELECT `wiki_pages`.* FROM `wiki_pages` WHERE `wiki_pages`.`wiki_id` = 23 AND (LOWER(title) = LOWER('Wiki')) ORDER BY title LIMIT 1
D, [2015-11-12T21:47:25.558483 #1048] DEBUG -- : WikiContent Load (0.1ms) SELECT `wiki_contents`.* FROM `wiki_contents` WHERE `wiki_contents`.`page_id` = 16 LIMIT 1
D, [2015-11-12T21:47:25.560267 #1048] DEBUG -- : Wiki Load (0.1ms) SELECT `wikis`.* FROM `wikis` WHERE `wikis`.`id` = 23 LIMIT 1
D, [2015-11-12T21:47:25.561008 #1048] DEBUG -- : Project Load (0.1ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`id` = 23 LIMIT 1
D, [2015-11-12T21:47:25.561829 #1048] DEBUG -- : CACHE (0.0ms) SELECT `enabled_modules`.`name` FROM `enabled_modules` WHERE `enabled_modules`.`project_id` = 23 [["project_id", 23]]
D, [2015-11-12T21:47:25.562565 #1048] DEBUG -- : WikiPage Exists (0.1ms) SELECT 1 AS one FROM `wiki_pages` WHERE `wiki_pages`.`wiki_id` = 23 LIMIT 1
I, [2015-11-12T21:47:25.563719 #1048] INFO -- : Rendered plugins/redmine_screenshot_paste/app/views/wiki/edit.html.erb within layouts/base (4.3ms)
I, [2015-11-12T21:47:25.563899 #1048] INFO -- : Completed 500 Internal Server Error in 12ms
F, [2015-11-12T21:47:25.567025 #1048] FATAL -- :
ActionView::Template::Error (wrong number of arguments (1 for 0)):
22: <label><%= l(:field_parent_title) %></label>
23: <%= fp.select :parent_id,
24: content_tag('option', '', :value => '') +
25: wiki_page_options_for_select(@wiki.pages.all(:include => :parent) -
26: @page.self_and_descendants, @page.parent) %>
27: </p>
28: <% end %>
activerecord (4.2.0) lib/active_record/scoping/named.rb:24:in `all'
activerecord (4.2.0) lib/active_record/relation/delegation.rb:70:in `block in all'
activerecord (4.2.0) lib/active_record/associations/collection_proxy.rb:868:in `block in scoping'
activerecord (4.2.0) lib/active_record/relation.rb:302:in `scoping'
activerecord (4.2.0) lib/active_record/associations/collection_proxy.rb:868:in `scoping'
activerecord (4.2.0) lib/active_record/relation/delegation.rb:70:in `all'
plugins/redmine_screenshot_paste/app/views/wiki/edit.html.erb:25:in `block (2 levels) in _plugins_redmine_screenshot_paste_app_views_wiki_edit_html_erb___2353919792485896326_70187488900140'
actionview (4.2.0) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.0) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer'
actionview (4.2.0) lib/action_view/helpers/capture_helper.rb:38:in `capture'
actionview (4.2.0) lib/action_view/helpers/form_helper.rb:714:in `fields_for'
plugins/redmine_screenshot_paste/app/views/wiki/edit.html.erb:20:in `block in _plugins_redmine_screenshot_paste_app_views_wiki_edit_html_erb___2353919792485896326_70187488900140'
actionview (4.2.0) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.0) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer'
actionview (4.2.0) lib/action_view/helpers/capture_helper.rb:38:in `capture'
actionview (4.2.0) lib/action_view/helpers/form_helper.rb:444:in `form_for'
plugins/redmine_screenshot_paste/app/views/wiki/edit.html.erb:5:in `_plugins_redmine_screenshot_paste_app_views_wiki_edit_html_erb___2353919792485896326_70187488900140'
actionview (4.2.0) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.0) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.0) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.0) lib/action_view/template.rb:143:in `render'
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:14:in `render'
actionview (4.2.0) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionview (4.2.0) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (4.2.0) lib/action_view/rendering.rb:100:in `_render_template'
actionpack (4.2.0) lib/action_controller/metal/streaming.rb:217:in `_render_template'
actionview (4.2.0) lib/action_view/rendering.rb:83:in `render_to_body'
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
actionpack (4.2.0) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
actionpack (4.2.0) lib/abstract_controller/rendering.rb:25:in `render'
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/opt/bitnami/ruby/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.2.0) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.2.0) lib/abstract_controller/base.rb:198:in `process_action'
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (4.2.0) lib/active_support/callbacks.rb:117:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:117:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:151:in `block in halting_and_conditional'
activesupport (4.2.0) lib/active_support/callbacks.rb:151:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:151:in `block in halting_and_conditional'
activesupport (4.2.0) lib/active_support/callbacks.rb:151:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:151:in `block in halting_and_conditional'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:234:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:234:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:92:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:92:in `_run_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.2.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.2.0) lib/abstract_controller/base.rb:137:in `process'
actionview (4.2.0) lib/action_view/rendering.rb:30:in `process'
actionpack (4.2.0) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.2.0) lib/action_controller/metal.rb:236:in `block in action'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in `serve'
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in `block in serve'
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `each'
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `serve'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in `call'
rack-raw-upload (1.1.1) lib/rack/raw_upload.rb:18:in `call'
rack-openid (1.4.2) lib/rack/openid.rb:98:in `call'
request_store (1.0.5) lib/request_store/middleware.rb:9:in `call'
rack (1.6.0) lib/rack/etag.rb:24:in `call'
rack (1.6.0) lib/rack/conditionalget.rb:25:in `call'
rack (1.6.0) lib/rack/head.rb:13:in `call'
actionpack-xml_parser (1.0.1) lib/action_dispatch/xml_params_parser.rb:16:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in `call'
rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
activerecord (4.2.0) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.2.0) lib/active_support/callbacks.rb:88:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:88:in `_run_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.2.0) lib/rails/rack/logger.rb:22:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
railties (4.2.0) lib/rails/engine.rb:518:in `call'
railties (4.2.0) lib/rails/application.rb:164:in `call'
railties (4.2.0) lib/rails/railtie.rb:194:in `public_send'
railties (4.2.0) lib/rails/railtie.rb:194:in `method_missing'
rack (1.6.0) lib/rack/urlmap.rb:66:in `block in call'
rack (1.6.0) lib/rack/urlmap.rb:50:in `each'
rack (1.6.0) lib/rack/urlmap.rb:50:in `call'
passenger (4.0.57) lib/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
passenger (4.0.57) lib/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
passenger (4.0.57) lib/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
passenger (4.0.57) lib/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'