Are you working with your WordPress and the error Maximum execution time exceeded? Here we are going to show you how to fix maximum execution time exceeded.
Well, are you getting mad at WordPress? In reality this error has nothing to do with WordPress, in this case, we have to blame the error for PHP.
But why does this error happens?
In this case it is for a security issue. PHP, for security reasons, has a set time limit for the execution of the scripts, and if that time is exceeded, that error will appear.
We also have to know that, depending on where your website is hosted, that time may vary. Our host has a configuration, or rules that give that time to the execution of scripts.
WP Maximum Execution Time Exceeded Plugin
As for almost everything in WordPress, we have a plugin, in this case WP Maximum Execution Time Exceeded, but we have a problem here, as we have already told you, if you have too many plugins, your website may slow down.
If we don’t have too many plugins and we’re afraid to play system files, this may be a solution.
Once you install this plugin, you don’t have to do anything else, the plugin does everything. There is no configuration page for the plugin, therefore, if you want to undo the changes, you simply have to remove the plugin and the changes in .htaccess will be undone.
Edit the .htaccess file
We will edit this file through our FTP client, for example FileZilla.
Now we just have to go to the root of WordPress, there we will find the file. Click the right mouse button and choose View / Edit.
You must add the following code at the bottom of the .htaccess file
Save the file.
We also have the option to do it through the cPanel. Enter cPanel and click on Select PHP Version.
Then click on Switch to PHP options.
Increase the default value you see in the max_execution_time row. It is set to 30 seconds by default, so in our example we are increasing it to 60 seconds. Click Apply to save your changes.
Edit The php.ini File
There is another way to solve the maximum runtime error exceeded in WordPress, by modifying your php.ini file.
The php.ini file is a configuration file that defines the PHP configuration on your server. In many WordPress hostings, you may not see it in your WordPress folder.
In that case we will have to create the file, and we will add the following line.
max_execution_time = 300
Remember that you can also increase the file upload size Increase Maximun File Upload Size WordPress.
Leave a Reply