Have you been getting an error in WordPress that claims “Fatal Error Maximum Execution Time Exceeded” every time you attempt to carry out a process like updating a theme or a plugin in WordPress?
Worry not. You’re not alone. Many WordPress users have encountered this error whereas performing varied duties and updating WordPress or plugins.
This is a widespread error that may be simply fastened. In this submit, we’ll present you two easy strategies for fixing it and information you thru the process with step-by-step directions.
First, let’s determine what’s inflicting this error in the primary place.
What Is ‘Fatal Error Maximum Execution Time Exceeded’ Error?
To know what this error is all about, it's essential to perceive how WordPress works. As you might know, WordPress is developed with PHP and WordPress makes use of sure PHP scripts to carry out particular functions throughout the system. For instance, when updating WordPress to a newer model, it runs scripts to carry out functions like updating databases.
Sometimes, when WordPress is executing these scripts it may take an unusually long time. Like once you attempt to replace WordPress throughout a peak time when your website is full of site visitors. This typically results in larger server useful resource utilization.
So, to forestall websites from abusing server assets, web hosting suppliers put a time restrict to how lengthy a script is allowed to run. When that time restriction is exceeded throughout a script execution, you’ll obtain the “Fatal Error Maximum Execution Time Exceeded” error.
How To Fix The Error
You can repair the error in two easy methods. The first includes utilizing a plugin and the opposite technique includes enhancing a core WordPress file in the server.
We suggest that you just use the second technique. Mostly as a result of plugins aren’t essentially the most dependable possibility since they typically run into conflicts and points.
But, in case you’re a full newbie and unsure about enhancing WordPress information, go together with the plugin possibility.
Note: Always keep in mind to backup your website earlier than making any adjustments to system information. If you don’t have a backup system, use our information to set up automated backups for free.
Method 1: Use The WP Maximum Execution Time Exceeded Plugin
The best method to repair the difficulty is utilizing the WP Maximum Execution Time Exceeded free plugin. With this plugin, you'll be able to immediately repair the error with simply a few clicks without having to manually edit any WordPress information.
Login to your WordPress dashboard and go to Plugins >> Add New
Search for the WP Maximum Execution Time Exceeded plugin after which click on Install.
Once you Activate the plugin, it will routinely lengthen your most execution time to 5 minutes, giving your website loads of time to run different types of scripts.
Method 2: Edit The .htaccess File
This technique includes enhancing the .htaccess file, which is positioned in your server.
You can use an FTP shopper app to enter your server. For the demonstrations, we’ll present you with easy methods to find the .htaccess file utilizing the CPanel to make the process simpler for novices.
Step 1: Login To CPanel
You can enter CPanel using your website hosting account. Or, you'll be able to immediately enter CPanel by typing it on the finish of your area title (eg: yourwebsite.com/cpanel)
Login to CPanel utilizing the username and password given to you by your web host. Check the welcome email despatched to you by the web hosting supplier to seek out the login particulars.
Step 2: Locate .htaccess File
Once you’re contained in the CPanel, discover the File Manager after which open the public.html folder to find all of the information associated with your website.
Here you’ll discover the .htaccess file.
Step 3: Edit .htaccess File
First, make a backup copy of the .htaccess file, simply in case. Then right-click on the .htaccess file and select Edit.
Once the file is open, paste the next code on the backside of the page.
php_value max_execution_time 300
Click Save Changes.
This will set your server's most execution time to 5 minutes.
Additional Steps: Disable Plugins & Themes
If you’re nonetheless getting the error after following the earlier strategies, then a defective plugin or a theme may be inflicting the error.
Login to your WordPress admin dashboard and disable all of your plugins. Then strive to enable the plugins one after the other till you'll be able to determine which plugin is inflicting the difficulty.
If that doesn’t work, strive to switch your present theme to the default WordPress theme to see if the error is brought on by a plugin-theme battle (How To Fix ‘Fatal Error Maximum Execution Time Exceeded) (How To Fix ‘Fatal Error Maximum Execution Time Exceeded).
In most instances, the primary reason for the “Fatal Error Maximum Execution Time Exceeded” error is your web host placing strict execution time limits in your server. This is normally widespread on shared hosting plans, which are hosted alongside 1000's of different websites on an identical server. Web hosts use methods like limiting execution occasions to cut back server load.
This sort of point will be much less widespread when utilizing managed WordPress hosting or VPS hosting plans. If the error continues to persist, think about transferring your website to a higher hosting supplier.