I’ve just got the same problem. Google search for “HTTP Error When Uploading Images” finds loads too with loads of different suggested fixes. My own investigations turn up some factors I’ve not yet seen referenced elsewhere.
There’s a common suggestion that it’s related to memory or file type. When I FTP to the relevant directory the images ARE there and I intentionally tried uploading a small image (6K jpg), seems very unlikely that would cause a memory issue with subsequent processing.
The image is listed in the media library but is displayed as a grey box (the wp default image) and won’t embed in a page. When I click that “Attachment details” show the correct path”, when I then click “view attachment page” no image is shown BUT this text “Published September 23, 2017 at × in snow” The x is a hypertext link and clicking it shows the full-size image.
Examining the HTML of that page shows another image tag linking to the original jpg but with html height and width elements both set to 1px.
It seems that normally wordpress creates further copies of an uploaded image with different dimensions. That has not happened, the uploaded image is only there at original size.
Looking at the server error logs I see the below which might cast some light on what’s going wrong to someone with a better understanding of the wordpress code:
[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
Another possible clue is that when I click EDIT I get this error after a few seconds “The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.” I can be certain that the server is available and well resourced so could this be indicating something like a nested loop that’s built up a demand for excessive CPU or RAM?
The error log at that point gives:
[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
Looks to my untutored eye as if something is wrong in image.php and/or upload.php
All plugins are up to date. WordPress 4.8.2 running Twenty Eleven PHP vsn is 7.1.9
I don’t know how long the server’s been on 7.1.9 (released 31 Aug) but it’s set to upgrade to latest so I reverted to prior vsn: 7.0.23 . PROBLEM SOLVED! for me at least, whether that helps anyone track down a similar problem but running different versions or wordpress & PHP, I don’t know.