Title: Getting PHP Timeout Errors When I Replace Media
Last modified: August 31, 2016

---

# Getting PHP Timeout Errors When I Replace Media

 *  [neil_nonstop](https://wordpress.org/support/users/neil_nonstop/)
 * (@neil_nonstop)
 * [10 years ago](https://wordpress.org/support/topic/getting-php-timeout-errors-when-i-replace-media/)
 * When I upload new images to replace the media, WordPress will often hang for 
   a while and then usually throw one of two errors, either
    `Fatal error: Maximum
   execution time of 30 seconds exceeded in /home2/newproject/public_html/sparkedmag/
   wp-includes/class-wp-image-editor-imagick.php on line 358` or I’ll just get an
   HTTP 500 error from my host. Even though it does throw these errors, the plugin
   seems to work fine and the images are replaced successfully! It’s more of an 
   annoyance than anything else.
 * I tried increasing my PHP execution time in my functions.php, but that doesn’t
   seem to do anything. Any help would be appreciated. Also, great work on the plugin!!
 * ~ Neil
 * [https://wordpress.org/plugins/enable-media-replace/](https://wordpress.org/plugins/enable-media-replace/)

The topic ‘Getting PHP Timeout Errors When I Replace Media’ is closed to new replies.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [neil_nonstop](https://wordpress.org/support/users/neil_nonstop/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/getting-php-timeout-errors-when-i-replace-media/)
 * Status: not resolved