RE: How to fix fatal error: Maximum execution time exceeded in WordPress?
There are two ways you can fix this error. The first method is to fix it manually by editing your .htaccess file and the second method allows you to do the same thing with a plugin.
- Edit the .htaccess File:
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
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.