Maximum Execution Time Exceeded Error:

In WordPress, there is a time limit allocated for running a PHP script. If the script takes too long to complete the process than the allowed limit, it will be stopped. Then the error will be shown as “Maximum Execution Time Exceeded Error”. You can easily solve this error in multiple ways. Here we will show you the ways to fix the problem.

Edit .htaccess file:

Add the following code to your .htaccess file. This code will help you to increase the execution time limit. But this .htaccess should present in the wp-content folder.

php_value max_execution_time 300

This code sets the execution time limit to 300 secs. Now check the error. If it is not resolved then increase the value to 600. This is one of the methods to fix the error.

Using a plugin:

WordPress has a plugin called WP Maximum Execution Time Exceeded. If you don’t want to try the above method, just install and activate the above-mentioned plugin to your website. This plugin will increase the execution time limit up to 300 seconds.

Via cPanel:

You can increase the execution time limit via cPanel. Follow the steps to increase the limit.
Step 1: Login to your Cpanel.
Step 2: Click on Select PHP version under the Software section.
Step 3: Click on Switch To PHP Options present in the right corner. It will take you to the PHP settings page.
Step 4: On that page, you can see max_execution_time. Modify that value to 300 and click apply to save the value.

That’s all. Now you have increased the maximum execution time limit value. These are the three methods available to fix the fatal error: Maximum execution time exceeded. We hope that this article will help you to fix the error. The above solutions are not yet worked, then contact your hosting provider.
Like us on Facebook and Twitter. For video tutorials, subscribe to our YouTube channel “ServerCake India”.

Categorized in:

Tagged in: