How to fix fatal error: Maximum execution time exceeded in WordPress?

How to fix fatal error: Maximum execution time exceeded in WordPress?

Senior Developer Asked on June 4, 2018 in WORDPRESS.
Add Comment
1 Answer(s)

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.

  1. 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.


  1. 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.

Senior Developer Answered on July 5, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.