When uploading image files to a WordPress website, you often receive error messages and cannot upload images. This is a common error that makes you feel very uncomfortable and significantly affects website administration. Most inexperienced users often do not know the cause of this error and how to fix image upload error in WordPress. Follow the article below by Optimal Agency to understand more.
☑️ Qualitiy account 💯, no worries about getting lock | ☑️ Immediate use, unlimited spending |
☑️ Best rental price | ☑️ Create campaign freely |
☑️ Many offers | ☑️ Optimized ads campaigns |
☑️ Consulting fast approved ads | ☑️ Safe, secure, effective and affordable |
☑️ Diverse services, accounts | ☑️ 24/7 technical support |
Learn about WordPress image upload errors
For a website, images play an important role in helping the content become vivid, prominent, attractive, and attract the attention of more visitors. Therefore, almost all articles on blogs or websites today use images. Especially for e-commerce websites, images are more focused on. Because they can attract customers to click to create conversions, and increase sales.
It’s a terrible thing if you’ve put a lot of effort into creating the perfect photo for your blog post or e-commerce website. However, when you upload it, you get an error message. Unable to upload an image is one of the most common image issues in WordPress. These image upload issues can be caused by a variety of factors. Before we get into how to fix WordPress image upload errors, let’s take a look at the causes of these errors.
Causes of WordPress image upload errors
The most common reason why you might be having problems uploading images to WordPress is incorrect file permissions. WordPress files are usually stored on the server. If you want these files to work, you need to have access to them.
Incorrect file permissions will prevent WordPress from reading and uploading the files to the hosting server. At this time, if you upload an image file, a message will appear as follows: “Unable to create directory wp-content /uploads/2019/04. Is its parent directory writable by the server?”. Or an error uploading an image to WordPress when the image is not displayed in the Media library.
In addition, several other reasons cause errors when uploading images to WordPress, specifically:
- You upload an image that is larger than the allowed size. Most WordPress hosting will be limited and if you upload an image with a size of 3000 x 2000 pixels, an error will occur. Some servers with limited resources will display an error with an image size below 3000 x 2000 pixels and images of this size will be blocked when uploaded.
- The parameters in the WordPress platform have a memory limit that is too low.
- The host is full of storage capacity or the Host is overloaded or downtime, lost connection with the user’s website browser the host at the time you upload.
- The image at the time of upload has too large a capacity and size, causing the image processing time to exceed the allowed time, so it cannot be uploaded.
How to fix image upload error in WordPress quickly and effectively
Once you understand the causes of errors in uploading images to WordPress, please refer to and apply the fixes below!
Grant access rights
First, you need to download and install FileZilla software to your computer at the link: https://filezilla-project.org/. Then click on Download FileZilla Client and select to open it as Run as Administrator. Next, check the box I agree to agree to the terms of the software and click Next to proceed with the installation. Finally, wait for the installation process to complete.
After successfully installing the software, log in to your FPT account (the account provided by your hosting provider after you complete the registration). Now access the WordPress image storage folder at the following path: public_html > wp-content > uploads.
Next, right-click on the Uploads folder and click on File Permissions… At this time, the Change file attribute window will appear on the screen, then enter the number 744 or 777 in the Numeric Value box. When you are done, click the OK button.
After completing the change, visit your website and try to upload any image to check if the WordPress system is working properly. When the image upload is successful and there are no errors in uploading images to WordPress, visit the Uploads section again. Then change the number you entered to 644 to ensure the privacy of the website.
Reduce image size when uploading
Uploading images that are too large compared to the regulations will cause image-loading errors and waste system resources. Therefore, before uploading images to a WordPress website, you should optimize the image size to Full HD (1920 x 1080) or less. This will avoid consuming more resources and ensure that the image can be displayed in full size on the web.
Upgrade hosting
Log in to your host to check if its storage capacity is full. If the storage capacity is full, you need to delete unnecessary data to free up space and upgrade the host to a higher package. If your host often has downtime or is overloaded, consider switching to another host with a higher and more stable configuration.
Increase WordPress memory limit
This is one of the effective ways to fix the error of uploading images to WordPress. Open the wp-config.php file of your WordPress website and add the following code: “1
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );” and save it. Next, adjust the upload_max_filesize and post_max_size parameters to about 128M. For websites running the free CloudFlare CDN, the maximum file size allowed to be uploaded is 100 MB.
Remove plugins that cause errors in uploading images to WordPress
In some cases, installing some plugins into the WordPress platform such as the WordPress maintenance plugin or the WordPress ad insertion plugin will cause problems including errors uploading images to WordPress. To fix this error, you need to disable those plugins and try uploading the image again.
If you want to delete a plugin in WordPress, you need to navigate to Plugins and click on Installed Plugins to see all the successfully installed Plugins.
You can then deactivate any previously installed plugin by clicking on the Deactivate box or selecting the box next to the plugins and from Bulk Actions then clicking the Deactivate button. The process of disabling the plugin in WordPress takes place, then click the Delete button to delete the plugin.
Change the .htaccess file
Using a WordPress platform with an outdated version is also one of the causes of image upload errors. To fix this, you can upgrade WordPress to the latest version or add the command line: SecFilterEngine Off or SecFilterScanPOST Off to the .htaccess file in the root directory of the website.
Rename the image
When you have problems uploading images to WordPress, you can change the name of the image. The WordPress image uploader may fail if you use special symbols such as *, $, #, &… or accented letters such as é, á, ò… At this point, you rename the image with the correct file and re-upload the file. In addition, you can rename the image in the WordPress platform using a plugin or FPT application.
Change the PHP version
One of the reasons why you encounter errors uploading images to WordPress is because the PHP version has problems or is incompatible. If you encounter this situation, try to fix it by changing the PHP to the latest version. To change the PHP version, log in to your hosting account, click on Software, and select Select PHP Version.
At this time, the screen will display a new interface with the current PHP version. Next, click on the PHP Version section to find the supported PHP versions. When a series of Modules are displayed, click on the desired Modules. Or you can set the default and click the Save button. Finally, click the Set as a current box to have the system change to the latest PHP version for the website.
You don’t need to worry too much if you have problems uploading photos to the website if you understand and master the effective how to fix image upload error in WordPress above. Then the photos will be uploaded to the website successfully and also ensure the best quality of the image display. Besides, our website also provides other services such as facebook dropship ads account rental service.
Related articles:
- Steps to build an e-commerce website professional
- How to optimize sales website effectively
- How to effectively optimize EEAT for your website to Increase SEO Rankings
Frequently asked questions
There are many reasons for the error of not being able to upload images to WordPress, but mainly it comes from corrupted files or outdated WordPress plugins that can cause compatibility issues that affect image loading. Make sure both WordPress and your installed plugins are up to date. Check regularly to detect and prevent potential problems with image loading and general site performance.
If the add media button is not working at all on WordPress when uploading images to posts. This is mainly due to the hosting cache conflicting for a while. At that time, you just need to clear your browser history or cache or turn off the cache plugin like WP Rocket. Then wait a while and you can add media completely normally.