I saw this question in the Facebook Group the other day and it caught my attention because this was happening to me yesterday on a client’s site, and I am not going to lie, it was MAKING ME CRAZY!
A few others commented on the thread, so the data doesn’t lie: this is officially a “thing”.
Situation: You add an image to your WordPress website (in the case of my sample we are all using Divi) and you get the twirly wheel forever, and eventually get a HTTP Error.
Fixes: I say this all the time, there is always a solution, it’s just a matter of figuring out which applies to you and may require some trial and error. Kind of like figuring out how to lose weight – your friend gives up sugar and drops 10lbs in a week. You drop sugar and are cranky and annoyed and gain 4 pounds overnight. I have a few options for you to try, and hopefully you will resolve the issue before you get to the end of the list.
- Resize & compress. Is the image very large? If you download an image from Unsplash or upload something from your camera it can be 5000 pixels wide. Depending upon where the image will be used on your site it probably doesn’t need to be larger than 1280 pixels. Also compress the image, I like to use tinypng.
- Check the PHP version you are on. I was able to resolve this issue for one client by updating to PHP 7.
- Do you need to increase the memory on your hosting?
- Clear your cache (this resolves a lot of problems). Sometimes it’s a simple refresh, sometimes you need to be more aggressive, you may have to try a couple of times.
- Change the extension file of the images (if you are using jpg try png or visa versa).
- Plugin conflict. Check to see if you are using an compression plugin. Deactivate the plugin and try to upload an image and see if that improves the ability to upload a photo.
- Do you need to update your plugins, themes or WordPress?
- Does your image have a special character in it? Try removing ‘ or / or $, etc.
- Try a different browser
- Is your WordPress install set up correctly so the file path is as it should be? You are looking for wp-content/uploads
I love to crowd source solutions, what has worked for you? Please share.