[wp-trac] [WordPress Trac] #44787: Generic "HTTP Error" when uploading PDFs via Media area, part II
WordPress Trac
noreply at wordpress.org
Mon Aug 13 23:44:41 UTC 2018
#44787: Generic "HTTP Error" when uploading PDFs via Media area, part II
----------------------------------------------+----------------------------
Reporter: BearlyDoug | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Media | Version: 4.9.8
Severity: normal | Keywords:
Focuses: administration, coding-standards |
----------------------------------------------+----------------------------
In an update/continuation of abandoned (not by me)
[https://core.trac.wordpress.org/ticket/43310 ticket #43310], I need to
bring this issue back to the forefront. After one of my Co-workers and I
did some additional testing, we have identified the "HTTP Error" is a
result of some PHP versions not being able to generate thumbnails from the
first page of a PDF (a change that was introduced within the 4.7 release).
The issue is that there is no fall-back option when WordPress is unable to
generate thumbnails.
We loaded the [https://wordpress.org/plugins/disable-pdf-thumbnails/
Disable PDF Thumbnails] plugin on the sites that were returning that "HTTP
Error" and were able to successfully upload PDFs without any problems.
Wordpress should auto-detect PDF image thumbnail creation "http errors"
and switch to the following fallback upon failure:
{{{
function makeworthy_disable_pdf_thumbnails() {
$fallbacksizes = array();
return $fallbacksizes;
}
add_filter('fallback_intermediate_image_sizes',
'makeworthy_disable_pdf_thumbnails');
}}}
The other thread (linked above) has some of our system information
available, however, I can provide updated details (or FTP/WP-Admin access
to the dev that fixes this), as needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44787>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list