[wp-trac] [WordPress Trac] #43310: Arbitrary "HTTP Error" when uploading PDFs via Media area

WordPress Trac noreply at wordpress.org
Wed Feb 14 01:58:50 UTC 2018


#43310: Arbitrary "HTTP Error" when uploading PDFs via Media area
-------------------------------------------------+-------------------------
 Reporter:  BearlyDoug                           |      Owner:
     Type:  defect (bug)                         |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
Component:  Media                                |  Review
 Severity:  normal                               |    Version:  4.9.4
  Focuses:  ui, administration, multisite,       |   Keywords:
  performance, coding-standards                  |
-------------------------------------------------+-------------------------
 This might be tied in with Ticket #41973. This may also be
 [https://make.wordpress.org/core/2016/11/15/enhanced-pdf-support-4-7/ tied
 into this issue], which was previously fixed for 4.7x.

 Currently using the following code to handle image processing:
 {{{
         // Fix image processing
         add_filter( 'wp_image_editors', 'change_graphic_lib' );
         function change_graphic_lib($array) {
                 return array( 'WP_Image_Editor_GD',
 'WP_Image_Editor_Imagick' );
         }
 }}}

 I've done all the digging around I can. File upload max size is 140 megs
 (the test PDF I used is only 13 megs). I've done the .htaccess and php.ini
 tweaks needed to allow plenty of upload time. Images no longer return the
 arbitrary "HTTP Error" after adding the above function.

 PHP 7.0.27-0+deb9u1 (cli) - This is the latest stable release,
 [https://packages.debian.org/search?keywords=php7.0 per Debian].

 This is what I passed along to our customer:

 "You’ll have to “tough your way” into the PDF uploads… after you upload a
 PDF, give it a few minutes… then do a power refresh on the media gallery
 (I would recommend you upload it through the media gallery first, rather
 than using the “Add Media” feature on posts and pages)."

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


More information about the wp-trac mailing list