[wp-trac] [WordPress Trac] #44787: Generic "HTTP Error" when uploading PDFs via Media area, part II
WordPress Trac
noreply at wordpress.org
Tue Aug 14 23:17:48 UTC 2018
#44787: Generic "HTTP Error" when uploading PDFs via Media area, part II
--------------------------+-----------------------------
Reporter: BearlyDoug | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Media | Version: 4.9.8
Severity: normal | Resolution: duplicate
Keywords: | Focuses: administration
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Old description:
> 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.
New description:
In an update/continuation of abandoned (not by me) 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.
--
Comment:
Hi there,
Sorry you still haven't got a reply on #43310, but it's still open, so
let's continue the discussion there. No need to create a new ticket for
the same issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44787#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list