Actions
Defect #10867
closedPDF export of Wiki pages breaks
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
PDF export
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
I'm using Redmine 1.4.1 (fresh update from the 1.4-stable SVN branch)
PDF export works in issues, etc. except for in wiki pages. Whe clicking on PDF, Apache gives an "Internal Error", and Webrick gives me the following error message:
NoMethodError in WikiController#show undefined method `version' for #<ActiveRecord::Associations::HasOneAssociation:0xb506aa08> RAILS_ROOT: /var/www/redmine_new Application Trace | Framework Trace | Full Trace /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:217:in `method_missing' /var/www/redmine_new/lib/redmine/export/pdf.rb:723:in `wiki_page_to_pdf' /var/www/redmine_new/app/controllers/wiki_controller.rb:76:in `show' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms' /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:106:in `call' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' script/server:3:in `require' script/server:3 /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:217:in `method_missing' /var/www/redmine_new/lib/redmine/export/pdf.rb:723:in `wiki_page_to_pdf' /var/www/redmine_new/app/controllers/wiki_controller.rb:76:in `show' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack' /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call' /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call' /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in `cache' /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in `call' /var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in `call' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/head.rb:9:in `call' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/methodoverride.rb:24:in `call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in `call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in `call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in `call' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/lock.rb:11:in `call' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/lock.rb:11:in `synchronize' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/lock.rb:11:in `call' /var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:106:in `call' /var/lib/gems/1.8/gems/rails-2.3.14/lib/rails/rack/static.rb:31:in `call' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/urlmap.rb:47:in `call' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/urlmap.rb:41:in `each' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/urlmap.rb:41:in `call' /var/lib/gems/1.8/gems/rails-2.3.14/lib/rails/rack/log_tailer.rb:17:in `call' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/content_length.rb:13:in `call' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/handler/webrick.rb:48:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' /var/lib/gems/1.8/gems/rack-1.1.3/lib/rack/handler/webrick.rb:14:in `run' /var/lib/gems/1.8/gems/rails-2.3.14/lib/commands/server.rb:111 script/server:3:in `require' script/server:3 Request Parameters: {"format"=>"pdf", "project_id"=>"root", "id"=>"Wiki"} Show session dump --- Response Headers: {"Content-Type"=>"", "Cache-Control"=>"no-cache"}
Updated by Marton Danoczy over 12 years ago
Never mind, fixed it. I migrated from ChiliProject back to Redmine and had to undo some changes it had done to my DB.
For posterity:
I created a pristine redime datanbase as in given by the installation instructions and compared it to mine. I had to rename the field version
and add the field comments
.
Updated by Marton Danoczy over 12 years ago
- Status changed from New to Resolved
- Assignee set to Marton Danoczy
Updated by Toshi MARUYAMA over 12 years ago
- Status changed from Resolved to Closed
- Assignee deleted (
Marton Danoczy) - Resolution set to Invalid
Actions