So far, have you encountered exceeding the maximum execution time of 30 seconds when updating the WordPress plugin? Fixing this error is relatively simple, but it may be tedious for some newcomers. Now, we are going to show you simple ways to fix maximum execution time exceeded in WordPress. In fact we’ll show you how to fix Maximum Execution Time Exceeded.
Why Maximum Execution Time Exceeded occurs?
WordPress coded with PHP language. To protect and prevent misuse of the web server environment, a time limit is set for how long a PHP script can run. Some service providers have set this amount at a higher level, while others may set it at a lower level. When the script reaches its maximum execution time, we encounter this error.
How to fix Maximum Execution Time Exceeded?
There are 3 ways to fix this error. The first method is manual repair by editing the .htaccess file and the second method doing the same with the plugin. Changing max execution time is the third method.
Method 1: Use the plugin
Using the plugin is the first method to fix Maximum Execution Time Exceeded. To do this, you need to install and activate WordPress WP Maximum Execution Time plugin. This plugin helps your .htaccess file to increase the maximum allowed execution time. If this plugin is already installed, you do not need to do anything. Due to there is no configuration page, you can remove this plugin to cancel changes made to .htaccess.
Method 2: Edit the .htaccess files manually
If you have installed many plugins and you do not want to add any new plugins, you can manually edit .htaccess files to increase the time limit. The easiest way is to use file management. Enter the following code at the bottom of the htaccess file and save.
php_value max_execution_time 60
This code increases the time code to 60 seconds. If the problem persists, increase it up to 120/180.
Method 3: Change the time of max execution time WordPress through cPanel
Go to the Select PHP Version section in the cpanel.
Click the Switch To PHP Options link.
On the max_execution_time line, increase the default time. Generally, the time limit is set at 30 seconds. For example, we will increase the time limit to 60 seconds. Click Apply to apply your changes.
The max execution time limit for your website has been increased successfully.
Finally, if you currently use a shared hosting service and none of these solutions can solve the error message, contact your service provider. They will help you find time limits.
At the end, call your hosting company to maximize the Maximum Execution Time for you through the php.ini file. If the hosting does not do this, you can use the manual method to upload the plugin or extension.
If you have any questions or ambiguities in this field, let us know via the comments section. Improve Simple ways to fix Maximum Execution Time Exceeded article with the leaving helpful comments.