Title: Max Execution Time Fatal Error
Last modified: August 15, 2017

---

# Max Execution Time Fatal Error

 *  [kevesp](https://wordpress.org/support/users/kevesp/)
 * (@kevesp)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/max-execution-time-fatal-error/)
 * I recently reconfigured the PHP and Apache on my server and updated WordPress
   to the latest one. And ever since then, I’ve had trouble accessing the the dashboard.
   I always get this error:
 * Fatal error: Maximum execution time of 180 seconds exceeded in /home/mainsite/
   public_html/wp-includes/wp-db.php on line 2416
 * I’ve also gotten this error on the wp-meta.php I believe also, but I don’t remember
   the specifics but it’s been more so on this one. Any ideas as to what is going
   on? Site works fine besides that though, just can’t seem to get to dashboard.
    -  This topic was modified 8 years, 9 months ago by [kevesp](https://wordpress.org/support/users/kevesp/).

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

 *  [epicdevspace](https://wordpress.org/support/users/epicdevspace/)
 * (@epicdevspace)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/max-execution-time-fatal-error/#post-9412558)
 * Hi
 * Get in touch with your host and ask them to increase the max_execution_time directive
   in your php.ini file.
 * Alternatively you can modify / create a php.ini in your public_html directory(
   if your host allows you to do so) and increase the max execution time by adding/
   editing the following. Note the number below indicates the amount of seconds.
 *     ```
       max_execution_time = 10
       ```
   
 * It’s always a good idea to check with your host if you’re uncertain/uncomfortable
   with modifying code.
 * All the best!
 *  Thread Starter [kevesp](https://wordpress.org/support/users/kevesp/)
 * (@kevesp)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/max-execution-time-fatal-error/#post-9426178)
 * I’ve modified this and increased the max execution time, but I’m still having
   problems loading the page. I increased it to a total of about 5 minutes, but 
   I feel like it just loops because 5 minutes comes and goes, no error ever shows,
   but it just keeps loading like it’s on a loop or something.
 *  Thread Starter [kevesp](https://wordpress.org/support/users/kevesp/)
 * (@kevesp)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/max-execution-time-fatal-error/#post-9435592)
 * I still need help I cannot access my admin dashboard because it won’t load. I’ve
   played with the max execution times but I keep getting errors or just a continuous
   loop of loading with nothing ever happening I feel like. This is the other error
   message I get:
 * Fatal error: Maximum execution time of 180 seconds exceeded in /home/mainsite/
   public_html/wp-includes/meta.php on line 841
 * I need help please!
 *  [epicdevspace](https://wordpress.org/support/users/epicdevspace/)
 * (@epicdevspace)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/max-execution-time-fatal-error/#post-9439110)
 * Hi
 * It’s difficult to pinpoint the issue without looking at the site.
 * It could be a plugin / theme issue if the max execution time fix didn’t work.
 * Try to bugfix this via ftp (backup your plugins directory and themes directory
   first). Then remove any plugins / theme that might be causing the issue and see
   if access to wp-admin is restored after each removal.
 * There could be other potential causal factors here and it is difficult to provide
   guidance without access to your site.
 * All the best!
 *  Thread Starter [kevesp](https://wordpress.org/support/users/kevesp/)
 * (@kevesp)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/max-execution-time-fatal-error/#post-9508680)
 * I still have no resolution to this. I have not yet tried to rule out potential
   plugins or themes but now whenever I try to access the admin dashboard I get 
   the max execution error along with these errors now:
 * Fatal error: Maximum execution time of 180 seconds exceeded in /home/main/public_html/
   wp-includes/wp-db.php on line 2416
 * Warning: array_key_exists() expects parameter 2 to be array, null given in /home/
   main/public_html/wp-includes/cache.php on line 725
 * Warning: array_key_exists() expects parameter 2 to be array, null given in /home/
   main/public_html/wp-includes/cache.php on line 725
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/main/public_html/wp-includes/cache.php on line 725
 * Warning: array_key_exists() expects parameter 2 to be array, string given in /
   home/main/public_html/wp-includes/cache.php on line 725
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/main/public_html/wp-includes/cache.php on line 725
 * Warning: array_key_exists() expects parameter 2 to be array, integer given in/
   home/main/public_html/wp-includes/cache.php on line 725
 * Warning: array_key_exists() expects parameter 2 to be array, integer given in/
   home/main/public_html/wp-includes/cache.php on line 725
 * Warning: array_key_exists() expects parameter 2 to be array, string given in /
   home/main/public_html/wp-includes/cache.php on line 725
 * Warning: array_key_exists() expects parameter 2 to be array, boolean given in/
   home/main/public_html/wp-includes/cache.php on line 725
 * Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   654128043 bytes) in /home/main/public_html/wp-includes/cache.php on line 546
 *  [Elena Shikova](https://wordpress.org/support/users/medpressa/)
 * (@medpressa)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/max-execution-time-fatal-error/#post-9589634)
 * Hello!
    I switched the site from php 5.3 to php 5.6 and I got errors
 * trip-together.ru [Sun Oct 15 22:45:39 2017] [error] [client 162.158.92.120] PHP
   Fatal error: Maximum execution time of 10 seconds exceeded in /wp-includes/post.
   php on line 5041, referer: [http://trip-together.ru/wp-admin/post.php?post=11253&action=edit](http://trip-together.ru/wp-admin/post.php?post=11253&action=edit)
   
   trip-together.ru [Sun Oct 15 22:46:21 2017] [error] [client 162.158.92.120] PHP
   Fatal error: Maximum execution time of 10 seconds exceeded in /wp-includes/cache.
   php on line 551, referer: [http://trip-together.ru/wp-admin/post.php?post=11253&action=edit](http://trip-together.ru/wp-admin/post.php?post=11253&action=edit)
 * It is only, then I edit post. I have
    virtual hosting Apache 2.2.

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

The topic ‘Max Execution Time Fatal Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Elena Shikova](https://wordpress.org/support/users/medpressa/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/max-execution-time-fatal-error/#post-9589634)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
