ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

PDF export of an issue throws exception

Added by Johan Levin at 2011-08-04 08:19 am

I have a problem with generating pdf files for an issue. Whenever I try I get an internal error and the following log message:

Processing IssuesController#show to pdf (for 192.168.0.92 at 2011-08-04 10:17:29) [GET]
  Parameters: {"format"=>"pdf", "action"=>"show", "id"=>"1", "controller"=>"issues"}

TypeError (can't convert nil into String):
  lib/redmine/export/pdf.rb:416:in `+'
  lib/redmine/export/pdf.rb:416:in `issue_to_pdf'
  lib/redmine/export/pdf.rb:415:in `each'
  lib/redmine/export/pdf.rb:415:in `issue_to_pdf'
  lib/redmine/export/pdf.rb:410:in `each'
  lib/redmine/export/pdf.rb:410:in `issue_to_pdf'
  app/controllers/issues_controller.rb:105:in `show'
  app/controllers/issues_controller.rb:101:in `show'
  /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/phusion_passenger/passenger-spawn-server:61

Rendering /srv/chiliproject/public/500.html (500 Internal Server Error)

Exporting PDF from the issue list page works fine. Am I doing something wrong or have I come across a bug here? Any help would be greatly appreciated, I don't know Ruby well enough to chase after this myself. :-(


Replies (2)

RE: PDF export of an issue throws exception - Added by Eric Davis at 2011-08-05 03:08 pm

Johan Levin:

That looks like a bug. Can you post this error to a new issue and include the output from running ruby script/about RAILS_ENV=production? Thanks.

Eric Davis

RE: PDF export of an issue throws exception - Added by Johan Levin at 2011-08-06 08:40 am

Thanks. I have submitted issue #561 for this now.

/ Johan

(1-2/2)