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”.
Preview may take a few seconds to load.
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Bold **double asterisks**
Three back ticks and then enter your code blocks here.
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
> type a greater than sign and start typing your quote.
You can add links by adding text inside of  and the link inside of (), like so:
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of , and the image URL inside of (), like so:
To add a divider you can add three dashes or three asterisks:
--- or ***