Title: Max execution exceeded
Last modified: May 10, 2018

---

# Max execution exceeded

 *  Resolved [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/max-execution-exceeded/)
 * I am getting the following email and wonder if there is something I can do to
   eliminate the critical errors?
 * [CRITICAL] : Maximum execution time of 30 seconds exceeded
    [CRITICAL] : Allowed
   memory size of 536870912 bytes exhausted (tried to allocate 1052672 bytes) [DEBUG]:
   WPO: Starting cron_action() [INFO] : 19 transient options deleted [INFO] : 0 
   unapproved comments deleted [INFO] : 0 auto drafts deleted [INFO] : 92 post revisions
   deleted [INFO] : 20 spam comments deleted [INFO] : 0 comments removed from Trash[
   INFO] : 2 posts removed from Trash [INFO] : Optimizing: then it continues with
   all the tables
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmax-execution-exceeded%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [istiakferdous](https://wordpress.org/support/users/istiakferdous/)
 * (@istiakferdous)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/max-execution-exceeded/#post-10280660)
 * I assume that you are using shared hosting. You can increase PHP execution time
   in php.ini file. Can you tell me what hosting panel do you use?
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/max-execution-exceeded/#post-10283938)
 * This is what is in my php.ini file:
    upload_max_filesize = 50M max_input_time
   = 120 max_execution_time = 30 memory_limit = 512M SET GLOBAL max_allowed_packet
   =524M
 * I am using cPanel
 *  Plugin Contributor [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * (@dnutbourne)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/max-execution-exceeded/#post-10296437)
 * Hi,
 * Please could you try increasing ‘max_execution_time’ to 300?
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/max-execution-exceeded/#post-10297006)
 * Thanks so much, I will change it. I’ll let you know if I get the message.
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/max-execution-exceeded/#post-10309089)
 * Sorry got the email today (did not get the “[CRITICAL] : Allowed memory size 
   of 536870912 bytes exhausted (tried to allocate 1052672 bytes)” error):
 * [CRITICAL] : Maximum execution time of 30 seconds exceeded
    [DEBUG] : WPO: Starting
   cron_action() [INFO] : 25 transient options deleted [INFO] : 0 unapproved comments
   deleted [INFO] : 0 auto drafts deleted [INFO] : 31 post revisions deleted [INFO]:
   5 spam comments deleted [INFO] : 0 comments removed from Trash [INFO] : 1 post
   removed from Trash
 *  Plugin Contributor [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * (@dnutbourne)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/max-execution-exceeded/#post-10319389)
 * Hi,
 * It appears that the change to the execution time did not take effect.
 * Please could you ask your hosts/server admin if there is anything else on the
   server that may be setting the 30 second limit?
 * I would also recommend adding the following line to your wp-config.php file (
   near the top):
    `set_time_limit(300);`

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

The topic ‘Max execution exceeded’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [Max execution time](https://wordpress.org/support/topic-tag/max-execution-time/)

 * 6 replies
 * 3 participants
 * Last reply from: [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/max-execution-exceeded/#post-10319389)
 * Status: resolved