Support » Fixing WordPress » Error When Uploading an Image

  • I’ve been having this issue all day and can’t figure out how to fix it. I try and upload images that are 199 kb and 248 kb and I keep getting a ‘HTTP Error’ or “Fatal Error: Maximum execution time of 30 seconds exceeded”.
    How do I fix this?
    I tried going through all the plugins and deactivating each and still nothing. I did define(‘WP_MEMORY_LIMIT’, ’64MB’); in wp-config.php and that didn’t help.
    THoughts?

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    “Maximum execution time of 30 seconds exceeded” means that it is taking to longer for a process to complete and it is timing out. There are a number of ways to fix this error.

    Editing .htaccess

    Make sure you back up .htaccess before you edit it.

    Add the following line to .htaccess:
    php_value max_execution_time 60

    Editing php.ini

    Add the following to php.ini
    max_execution_time = 60 ;

    If you are unsure of how to make these changes, or if you are on shared hosting that prevents you from making them yourself, you should contact your hosting provider and ask them to increase your maximum execution time.

Viewing 1 replies (of 1 total)
  • The topic ‘Error When Uploading an Image’ is closed to new replies.