[wp-trac] [WordPress Trac] #41973: HTTP Error when uploading images on PHP 7.1.9

WordPress Trac noreply at wordpress.org
Wed Sep 27 20:44:37 UTC 2017


#41973: HTTP Error when uploading images on PHP 7.1.9
-------------------------------+------------------------------
 Reporter:  robhindle          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  4.8.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by joemcgill):

 Generally, when we see this error it's a misconfiguration with the Imagick
 PHP extension, so that's where I'd check first. On a broken environment,
 you can try switching to GD as the image handler to see if that, in fact,
 is the culprit.

 This filter will reprioritize GD as the default image editor used by
 WordPress:


 {{{#!php
 add_filter( 'wp_image_editors', 'change_graphic_lib' );

 function change_graphic_lib() {
     return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41973#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list