How to Fix Fatal Error: Maximum Execution Time Exceeded in WordPress
The fatal error is a common problem on word press .if you are seeing fatal error maximum execution time exceeded when you try to access your word press site, it means a part of your word press code is taking too long to execute and your server is stopping the execution. Fixing this error is relatively simple, but it can be really frustrating for the beginner. So, in this, we will show how to fix this problem.
Why Maximum Execution Time Exceeded Error Occurs?
Word press code was written by PHP language. To protect web server from abuse, there is a limit set for how long a PHP script run. Some of the web hoster set the value of highest execution time while some of the set lower execution time. when a script reaches the maximum execution time limit, it results in the highest maximum time error.
Fixing Maximum Execution time Exceeded Error
There are two ways solve this problem
- By editing the .htaccess file
- The second method does the same thing with a plugin
Method 1: Editing .htaccess File manually
Simply connect to your website with FTP
Follow these instruction
- .htaccess file Is located in the same folder as your wp/content/folder
- Next, add this line to your .htaccess file:
php_value max_execution_time 300
This code simply sets the value for maximum execution time to 300 seconds (5 minutes). If you still get the error, then try increasing the value to 600
Method 2: Using a plugin
If you don’t wish to edit .htaccess file manually, then you can install and active the Wp maximum Execution time Exceeded plugin . the plugin works out of the box and increases the maximum execution time to 300 seconds.
“We hope this article helps the fix fatal error maximum execution time exceeded in WordPress”.