Support » Fixing WordPress » HTTP error when uploading images

  • The majority of the photos that I upload to WordPress come up with “HTTP error”. I asked my host to increase the PHP memory limit which was done but did not help. Any other ideas ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Solution 1:

    Add this line in your wp-config.php:

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

    Solution 2:

    Add this line of code in you .htaccess file:

    php_value memory_limit 256M

    Solution 3:

    (This solution Only if you have Dedicated Server/ VPS )
    Create a file info.php containing the following:

    <?php
    phpinfo();
    
    ?>

    Now display that file on your website and look for php.ini locations and try to add the following code to it:

    memory_limit = 256M ; Maximum amount of memory a script may consume (64MB)

    Upload it to your website ftp and display it on your browser

    Deactivate JetPack

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTTP error when uploading images’ is closed to new replies.