I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2318

Issues as pdf

Added by Marc M over 9 years ago. Updated about 5 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
25 Jun 2014
Due date:
% Done:

90%

Redmine version:
External issue:

Description

500 internal error page when I want to view/export an issue as pdf
It only appears when the extendes fields plugin is installed and only on issues.

Log:

Started GET "/issues/2012.pdf" for xx.xxx.xxx.xxx at 2014-06-25 14:43:36 +0200
Processing by IssuesController#show as PDF
  Parameters: {"id"=>"2012"}
  Current user: xx (id=3)

Completed 500 Internal Server Error in 140.6ms

NoMethodError (undefined method `find_custom_field_template' for #<IssuesController:0x007fc27cc2c978>):
  lib/redmine/export/pdf.rb:576:in `block in issue_to_pdf'
  lib/redmine/export/pdf.rb:575:in `each'
  lib/redmine/export/pdf.rb:575:in `each_with_index'
  lib/redmine/export/pdf.rb:575:in `issue_to_pdf'
  app/controllers/issues_controller.rb:133:in `block (2 levels) in show'
  app/controllers/issues_controller.rb:125:in `show'

Redmine 2.5.1.stable.13182
Extended fields 0.2.3


Related issues

Related to Extended Fields - Bug #2261: issues PDF view and descriptions Incomplete 04 Nov 2013
Related to Extended Fields - Bug #2098: Failure in XLS Export (undefined method `find_custom_field_template' for #<XlsExportController) In Progress 07 Sep 2012
Related to Extended Fields - Bug #1936: Undefined method `find_custom_field_template' Closed 06 Jan 2012 01 Feb 2012
Related to Extended Fields - Bug #1934: Export to csv fails, NoMethodError (undefined method `find_custom_field_template' Closed 06 Jan 2012
Duplicated by Extended Fields - Bug #2359: Extended fields plugin breaks PDF export In Progress 29 Jan 2015

Associated revisions

Revision 124 (diff)
Added by Andriy Lesyuk over 7 years ago

Explicitly include ExtendedFieldsHelper (#2318, #2359, #2098)

History

#1 Updated by Olivier Houdas over 9 years ago

We have the same issue.
If I remove the Yes/No field from the list of columns to be shown, the PDF can be generated.

#2 Updated by Alexander Kuznecov over 9 years ago

Reproduced on:

Redmine 2.6.0
Extended fields 0.2.3
Ruby 2.1.4

#3 Updated by Andreas Hartmann over 9 years ago

Same issue here with the following environment and up to date extended_fields version.

 Redmine version                2.5.3.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux]
  Rails version                  3.2.19

#4 Updated by Andriy Lesyuk over 9 years ago

  • Status changed from New to Incomplete
  • Target version set to 0.2.4

#5 Updated by Andreas Hartmann over 9 years ago

Can i provide any further information to help to solve this issue?

#6 Updated by Koen Boone over 8 years ago

i’m also having this issue (redmine 2.6.1)... pdf creation errors on issue lists and issues, is there any progress on this?
it would be greatly appreciated

#7 Updated by Andriy Lesyuk over 7 years ago

  • Duplicates deleted (Bug #2261: issues PDF view and descriptions)

#8 Updated by Andriy Lesyuk over 7 years ago

  • Duplicated by Bug #2359: Extended fields plugin breaks PDF export added

#9 Updated by Andriy Lesyuk over 7 years ago

  • Related to Bug #2261: issues PDF view and descriptions added

#10 Updated by Andriy Lesyuk over 7 years ago

  • Related to Bug #2098: Failure in XLS Export (undefined method `find_custom_field_template' for #<XlsExportController) added

#11 Updated by Andriy Lesyuk over 7 years ago

  • Related to Bug #1936: Undefined method `find_custom_field_template' added

#12 Updated by Andriy Lesyuk over 7 years ago

  • Related to Bug #1934: Export to csv fails, NoMethodError (undefined method `find_custom_field_template' added

#13 Updated by Andriy Lesyuk over 7 years ago

  • Status changed from Incomplete to In Progress

This will be the issue, where all the work will be tracked. See the list of related issues for possible duplicates and similar issues.

Some ideas and possible fixes:

  1. Does the patch of Sergey B in #2359 help (same as 3?)?
  2. Does the suggestion in #2261 (note 7) help?
  3. Maybe note 22 and 24 in #2098?

#14 Updated by Andriy Lesyuk over 7 years ago

  • % Done changed from 0 to 90

Probably, r124 fixes this issue. Could you please check?

#15 Updated by Marc M about 5 years ago

Seems fixed in the current version. with redmine 3.4

Also available in: Atom PDF

Terms of use | Privacy policy