Opened 6 years ago
Last modified 3 years ago
#52509 new defect (bug)
Error generating Thumbnails of PDF-Files
| Reported by: | falk07 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | 5.6.1 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
This is a follow-up to #48853.
This issue seems to be still present in Version 5.6.1
Some PDF-Files cause an internal server error, some do not. (The server's error log tells something about missing headers)
Here's what i did to isolate the error:
- I examined the PDF-Files. The affected files had a PDF-Version 1.7 an were created with non-Adobe-Tools (e.g. Office365). PDFs with Version 1.4 and 1.5 (created with Acrobat) worked well.
- tried it with a local copy of the site on XAMPP: No Problems
- used a little code-snippet to prevent thumbnail-generation in general: Upload works
This is the snippet:
<?php function disable_pdf_previews() { $fallbacksizes = array(); return $fallbacksizes; } add_filter('fallback_intermediate_image_sizes', 'disable_pdf_previews');
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #45813