Title: HTTP error 500 when uploading image
Last modified: November 30, 2016

---

# HTTP error 500 when uploading image

 *  Resolved [sharonlandis](https://wordpress.org/support/users/sharonlandis/)
 * (@sharonlandis)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-500-when-uploading-image/)
 * Yesterday I fixed the problem, today it’s back.
 * First, I tried setting up a php.ini file containing
    upload_max_file_size = 64M
   max_execution_time = 300M
 * That didn’t work. Next I added “SetEnv MAGICK_THREAD_LIMIT 1” to the top of .
   htaccess.
    That worked yesterday. Today I am back to not being able to upload
   images.
 * This is the error log entry
    [Wed Nov 30 15:06:42 2016] [warn] [client 173.34.238.99]
   mod_fcgid: stderr: PHP Fatal error: Maximum execution time of 30 seconds exceeded
   in /home/csres380/public_html/wp-includes/class-wp-image-editor-imagick.php on
   line 360, referer: [http://csresume.com/wp-admin/upload.php](http://csresume.com/wp-admin/upload.php)
 * How can I fix this?
 * Thanks
    Sharon

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Indexed](https://wordpress.org/support/users/peter_indexed/)
 * (@peter_indexed)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-500-when-uploading-image/#post-8499344)
 * try set_time_limit(300); at the top of the script
 *  Thread Starter [sharonlandis](https://wordpress.org/support/users/sharonlandis/)
 * (@sharonlandis)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-500-when-uploading-image/#post-8499458)
 * I tried this as the first line of .htaccess (“set_time_limit(300)”). It my site
   to not load at all,
 * Internal Server Error
    The server encountered an internal error or misconfiguration
   and was unable to complete your request. Please contact the server administrator,
   [webmaster@csresume.com](https://wordpress.org/support/topic/http-error-500-when-uploading-image/webmaster@csresume.com?output_format=md)
   and inform them of the time the error occurred, and anything you might have done
   that may have caused the error. More information about this error may be available
   in the server error log. Additionally, a 500 Internal Server Error error was 
   encountered while trying to use an ErrorDocument to handle the request. Apache
   Server at csresume.com Port 80
 * Then I tried
    php_value max_execution_time 300 in .htaccess, causing the same
   ugly error
 * I also tried this in php.ini
    max_execution_time = 300 – this didn’t do anything,
   the error log entry indicates the 30s max was not overridden [Wed Nov 30 16:04:
   26 2016] [warn] [client 173.34.238.99] mod_fcgid: stderr: PHP Fatal error: Maximum
   execution time of 30 seconds exceeded in /home/csres380/public_html/wp-includes/
   class-wp-image-editor-imagick.php on line 360, referer: [http://csresume.com/wp-admin/upload.php](http://csresume.com/wp-admin/upload.php)
 * What did I do wrong?
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-500-when-uploading-image/#post-8499535)
 * Your webhost, which appears to be these [folks](http://www.whoishostingthis.com/hosting-reviews/site5/),
   can limit what options you can set in php.ini and/or .htaccess. Consult with 
   your web host on the issue(s), or have a look at recommended hosts [here](https://wordpress.org/hosting/).
 * Meanwhile, do a [speed test](http://www.speedtest.net/) (upload speed) on your
   local machine. If you are at slow speeds, it may take even more than 300s to 
   upload a big file.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HTTP error 500 when uploading image’ is closed to new replies.

## Tags

 * [HTTP error 500](https://wordpress.org/support/topic-tag/http-error-500/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-500-when-uploading-image/#post-8499535)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
