WordPress is vast and you can get many errors within that such as internal server error 500, login page refreshing and redirecting error, image upload issue etc. But, here we are going to talk about particular error that occurs while you receive a message that is “Maximum execution time of 30 seconds exceeded” or sometimes 60 seconds. This actually means that it takes longer to complete a process and now it gets time out.
Reasons for WordPress Maximum Execution Time Exceeded Error
This error arises when you have exceeded the execution limit of default time allotted. Assume in case you are updating or installing a plugin and just after that you receive an error message. Even this error can occur while handling a WordPress theme.
Why Did You Get Maximum Execution Time WordPress Error?
As you know, web hosting has script which consists of fixed execution time limit for the PHP scripts. There is a need to save their server as you may get conflict with other users if in case you install a poorly coded plugin or use shared web hosting that takes a lot of time to get execute.
That’s why, they set some execution time and if the limit is crossed by PHP scripts then you receive such error. So, how we are going to fix maximum execution time of 60 seconds exceeded fatal error.
Methods to Fix Fatal Error Maximum Execution Time in WordPress
- Edit the .htaccess File
Follow these steps:
Connect to the website using FTP client. You can get access to your .htaccess file which you will find in the same folder as the ones /wp-content/ and /wp-admin/ folders.
Now, you just need to add this line to your .htaccess file.
php_value max_execution_time 300
The above code sets the value for maximum execution time to 300 seconds i.e. 5 minutes. If you still get some error, then we can try by increasing the value to 600. This is the easiest method to fix the maximum execution time exceeded in WordPress.
- Using Plugin
If you are feeling lazy to edit .htaccess file manually, then you can install WP Maximum Execution Time Exceeded plugin. It is very simple and effective plugin. If you are receiving this message “Maximum execution time of 30 seconds exceeded” or “Maximum execution time of 60 seconds exceeded” then this is the plugin you can use.
Whenever you will activate WP Maximum Execution Time Exceeded plugin after the installation, then it will write to the .htaccess file. You can test the process with a really longer timeout. This is the simplest method to solve the error. This is a light-weighted plugin so it won’t create any load on your website.
So, you can see the simplicity of these methods. The second method I’ve discussed above really works out of the box. I hope this article will really help you in fixing this fatal error of Maximum Execution Time Exceeded in WordPress. If these methods not helps you to fix the maximum execution time error then you can comment below. I will try my best to introduce you with their correct answers.