[wp-trac] [WordPress Trac] #48853: Error generating thumbnails of PDF files

WordPress Trac noreply at wordpress.org
Mon Dec 2 18:00:04 UTC 2019


#48853: Error generating thumbnails of PDF files
--------------------------+-----------------------------
 Reporter:  joseaneto     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Upload        |    Version:  5.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 After updating WordPress to 5.3, we saw how the thumbnails of the PDF
 files were not generated.

 After many tests in different environments (we have tested with PHP
 versions 7.0, 7.1, 7.2 and 7.3, and in different servers), I found the
 cause, this change:

 https://core.trac.wordpress.org/changeset/46238

 Calling {{{setOption}}} before {{{readImage}}} produces an internal error
 in Imagick ({{{ImagickException: Failed to read the file}}}) that causes
 it not to be able to read the file, while moving this line to run after
 {{{readImage}}} generates thumbnails without problems.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48853>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list