WordPress

HTTP Error During Media Upload in WordPress?

There are many things that could lead to an HTTP error when you are trying to try to upload files or images using the WordPress media uploader

  1. Make Sure that The HTTP Error is Not Temporary

Check that there is no latency or load of traffic on the server, try again later, or you can ask you hosting company support about the status of the network or the server/shared server

2. Increase WordPress Memory Limit:

increase the amount of memory PHP can use on your server
You can do this by adding the following code to your wp-config.php file

define( 'WP_MEMORY_LIMIT', '512M' );

This code increases the WordPress memory limit to 512MB, which would be enough to fix any memory limit issues.

3. Using The .htaccess:

An easy fix is to add the following code in your .htaccess file:

SetEnv MAGICK_THREAD_LIMIT 1        

4. Permission Issue:

When you install or setup a new WordPress the web-server may need write access to the files. So the access rights may need to be loose.





chown www-data:www-data  -R *  # Let NGINX be owner
chown httpd:httpd -R * # Let Apache be owner
chown <User>:<Group> -R * # Let <User> or FTP owner
find . -type d -exec chmod 755 {} \; # Change directory permissions
find . -type f -exec chmod 644 {} \; # Change file permissions

Leave a Reply

Your email address will not be published. Required fields are marked *

eIz q313 Uhv

Please type the text above:

Close
Close