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

WordPress Trac noreply at wordpress.org
Tue Sep 26 14:53:22 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 robhindle):

 Errors from log file are:
 [Sat Sep 23 16:04:32.736522 2017] [proxy_fcgi:error] [pid 27185:tid
 140636833384192] (104)Connection reset by peer: [client 80.0.10.2:49601]
 AH01075: Error dispatching request to :, referer: https://pdmhs.co.uk/wp-
 admin/upload.php


 [Sat Sep 23 16:14:56.993005 2017] [proxy_fcgi:error] [pid 27188:tid
 140636883740416] [client 80.0.10.2:49723] AH01071: Got error ‘PHP message:
 PHP Warning: Illegal string offset ‘width’ in
 /var/www/vhosts/pdmhs.co.uk/httpdocs/wp-
 content/themes/twentyeleven/image.php on line 34\nPHP message: PHP
 Warning: Illegal string offset ‘height’ in
 /var/www/vhosts/pdmhs.co.uk/httpdocs/wp-
 content/themes/twentyeleven/image.php on line 35\n’, referer:
 https://pdmhs.co.uk/wp-admin/upload.php?item=2482

 I was reluctant to deactivate plugins as without them the site's a mess
 but I summoned the courage, switched to PHP 7.1.9 then progressively re-
 enabled, testing image upload as I went along.  Now I am confused, when
 I'd finished adding them all back image upload was still working.  I
 rechecked imagemagick version in case of update at the server - no change.

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


More information about the wp-trac mailing list