Fixing Image Upload Error in WordPress. There are a few solutions to this issue. Below are the steps on fixing image upload error in wordpress;
Steps to fixing the image upload error in WordPress
- Firstly, if you are you running PHP 7.3 and WordPress 5.3? You may try downgrading to PHP 7.2.
- Next, you may try increasing your site’s memory limit. Click here to learn more about how to decrease your memory limit.
If neither of these works you may attempt to work around it.
3. Go to your media library and select any picture. Preferably one that you managed to upload successfully. Click Edit and look at where the picture is located. keep this open or remember it.
4. Connect to your server via a FTP client and navigate to this folder where your images are stored. Upload your large photographs to this folder.
5. They won’t show up in your media library yet. You need to use a plugin called ‘Add From Server’. Download that and install/activate it (by Dion Hulse).
6. Backup your WordPress installation (just in case).
7. Finally, hover over Media and then select the new option = Add From Server
8. Navigate to the folder where you uploaded your photo’s to. Make sure you select just the photos you want to import into your Media Library (although you could delete the duplicates if you make a mistake).
9. After you click go, it’ll take some time, but don’t cancel it or refresh the page. Just wait, and you’ll get a notification on the same screen when it’s done. Along with a new list of imported files (including size variations if applicable).
10. Now your photos will be in your media library with ‘scaled’ at the end. You can now use these in your posts and they will work just fine.
NOTE:
The files are imported to wherever you select them from. So it’s important that you put them in the same folder as the rest of your active pictures BEFORE you import them. Other wise they’ll show up in the media library, but won’t actually work on your website (took a while to figure this out).
I’d recommend importing 10-15 pictures at a time if they are large. Any more and you risk being signed out of your cPanel due to inactivity and it may break your installation (maybe, hence the backup).
If you have any questions or need any assistance solving this issue, please contact us.