Defect #7386

NoMethodError on pdf export

Added by Nicolas Michel over 11 years ago. Updated about 11 years ago.

Status:ClosedStart date:2011-01-20
Priority:HighDue date:
Assignee:-% Done:


Category:PDF export
Target version:1.1.1
Resolution:Fixed Affected version:1.1.0


When I'm in an issue and click on the bottom on the pdf link, I get a 500 error.
Here are the logs :

Processing IssuesController#show to pdf (for at 2011-01-19 16:23:09) [GET] Parameters: {"format"=>"pdf", "action"=>"show", "id"=>"51", "controller"=>"issues"}

NoMethodError (private method `gsub' called for nil:NilClass): lib/redmine/export/pdf.rb:258:in `issue_to_pdf' app/controllers/issues_controller.rb:119:in `show' app/controllers/issues_controller.rb:115:in `show'

Rendering /home/redmine/redmine-1.1.0/public/500.html (500 Internal Server Error)

I'm on a debian Lenny 64 bits. Redmine 1.1.0. Here is the gem list :

gem list

actionmailer (1.0.1)
actionpack (1.9.1, 1.0.1)
activemodel (3.0.3)
activerecord (3.0.3)
activesupport (3.0.3, 1.1.1, 1.0.1)
arel (2.0.6)
builder (2.1.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.0, 1.0.1)
fastthread (1.0.1)
gem_plugin (0.2.3)
gruff (0.3.6)
holidays (1.0.0)
i18n (0.4.2)
icalendar (1.0.1)
mongrel (1.0.1)
prawn (0.8.4)
prawn-core (0.8.4)
prawn-layout (0.8.4)
prawn-security (0.8.4)
rack (1.0.1)
tzinfo (0.3.23)

Is someone can help me?
Thank you.

Related issues

Related to Redmine - Patch #5629: Wrap text fields properly in PDF Closed 2010-06-01

Associated revisions

Revision 4736
Added by Jean-Philippe Lang over 11 years ago

Avoid "private method `gsub' called for nil:NilClass" error when exporting issues with nil description (#7386).


#1 Updated by Jean-Philippe Lang over 11 years ago

  • Status changed from New to Resolved
  • Target version set to 1.1.1
  • Resolution set to Fixed

This should be fixed by r4376.

#2 Updated by Jean-Philippe Lang over 11 years ago

  • Subject changed from Problem with pdf with redmine 1.1.0 to NoMethodError on pdf export
  • Status changed from Resolved to Closed

Merged in 1.1-stable.

#3 Updated by Etienne Massip about 11 years ago

  • Category set to PDF export

Also available in: Atom PDF