Facing a ‘Fatal error’ when updating WordPress plugins or themes indicates issues with your software development site. As a premier ‘Website design Company in Kakkanadu, Ernakualm (Kochi)’ resolving this PHP script problem is vital for smooth website maintenance.
Even though WordPress calls it a ‘serious’ error, it doesn’t mean your whole website is in danger. It just means that one specific task didn’t work. Your website’s regular parts should keep working fine, and you can still do other things on it.
This means the job that had the error won’t finish, and sometimes, these errors can make your website not work correctly. So, you shouldn’t ignore them!
Even though WordPress shows a friendly error message, the real problem is related to the ‘max_execution_time’ instead of ‘Fatal Error Max Execution Time Exceeded.’ These two phrases mean the same thing.
The error happens when a piece of code on your website takes too long to finish running, and it crosses the time limit set by PHP in WordPress, which is 30 seconds. This limit is there to allow enough time for tasks to finish but not so long that it causes the whole site to freeze.
So, if a task takes too long, PHP will stop it to ensure your website keeps running smoothly.
Why Does the WordPress max_execution_time Fatal Error Occur?
In the realm of web hosting, providers in Kakkanadu, Ernakulam (Kochi), often set PHP limits to conserve resources. As a distinguished ‘Website Design Company in Kakkanadu, Ernakulam (Kochi)’ we recognize that WordPress, being PHP-based, can be a target for cyber threats, impacting server efficiency. Hosting providers maintain a balance by implementing PHP time limits, typically 30 to 60 seconds, ensuring shared resource accessibility for all websites on a server. This allows smooth operation of plugins, themes, and scripts.
However, bad code or malware in a script, plugin, or theme can surpass the set time limit, triggering the ‘Fatal Error’ message. Despite its less-than-friendly appearance, it’s crucial to understand that this error pertains to a specific task, not the entire website. For tailored solutions to such challenges, contact us, your reliable software development partners in Kakkanadu, Ernakulam (Kochi).
How to Resolve the Fatal Error in WordPress Due to max_execution_time
You have a few options for resolving the max execution time error or extending your site’s maximum execution time.
Your choice may depend on your comfort level with directly modifying your site’s files and adding code. If this approach seems too complex for your technical skills, there are fortunately alternative solutions.
Uninstall the Problem Software
To troubleshoot the max execution time error, consider removing problematic software, such as plugins or themes, in our Kakkanadu, Ernakulam (Kochi) -based Website Design Company’s recommended approach. If you suspect a specific application causing the issue, especially after recent installations or updates, this method is worth exploring. In cases where the error locks you out, utilize WordPress Recovery Mode to access the dashboard and identify the problematic plugin through update failure notifications.
In that case, go to Plugins > Installed Plugins and click on ‘Deactivate’ under the relevant item. Then, click ‘Delete’ to remove it.
If you’re uncertain about which plugin is causing the ‘maximum execution time exceeded’ error, you can deactivate all your plugins and reactivate them one by one. After each activation, refresh the page to see if you can pinpoint the one causing the problem.
You have the option to utilize Secure File Transfer Protocol (SFTP) to uninstall the plugin. Alternatively, if you have a fully hosted DreamHost account, you can achieve this using the file manager in your control panel.
Navigate to Websites > Manage Websites, and hover over the preview above your domain name. Then click on Manage.
Select Manage Files.
Next, go to the directory folder for your website. Open the Plugins folder, right-click on the plugin you wish to delete, and choose the ‘Delete’ option.
Hopefully, this should fix the error. If it doesn’t, you can proceed to the next methods.
Use the WP Maximum Execution Time Exceeded Plugin
One of the simplest methods for extending the maximum execution time involves using the WP Maximum Execution Time Exceeded plugin.
With this tool, you can raise the maximum execution time to 300 seconds (which is five minutes) as long as the plugin is active.
You might find this option more favorable than the previous one since it allows you to increase the maximum execution time globally. This can be advantageous if you want to provide a bit more time for functional plugins and themes to finish their updates.
To use the plugin, you can download the .zip file and head to your WordPress dashboard. Navigate to Plugins > Add New and click on Upload File > Choose File.
Click on Install Now. Once the plugin is installed, select Activate Plugin to complete the process.
This plugin instantly boosts your site’s maximum execution time, requiring no additional actions from you. If you decide to uninstall it and return to the default settings, you can go to Plugins > Installed Plugins and click on ‘Deactivate’.
This is a simple solution for the ‘maximum execution time exceeded’ error, but it doesn’t offer the option to set a custom duration. If you’re interested in customizing the duration, you might find one of the more advanced methods below more suitable.
Increase the Maximum Execution Time via wp-config.php
To extend the maximum execution time for your site, customize it in the ‘wp-config.php’ file. Our Kakkanadu, Ernakulam (Kochi) -based Website Design Company recommends this method for a personalized approach. Safeguard your critical site data like name, host, and credentials. Before editing, create a full backup to prevent irreversible errors. Easily locate the ‘wp-config.php’ file using DreamPress file manager or your SFTP application to access and edit swiftly.
As an alternative, you can choose the “Download” option and then edit the file using a basic text editor like Notepad. Once you’ve opened the ‘wp-config.php’ file, scroll down to the bottom and insert the subsequent code:
In this code, you should replace “X” with the desired maximum execution time in seconds. For instance, you can substitute it with “300” to extend the duration to five minutes.
Now you can save the file, and you’ve successfully changed the maximum execution time!
Increase the Maximum Execution Time in php.ini
Another method to raise the maximum execution time involves generating a new ‘php.ini’ file. This file functions as a configuration document governing your PHP settings, including resource constraints, file upload capacities, and time limits.
This approach can be quite advantageous, especially if you’re working with a Content Management System (CMS) like WordPress. The ‘php.ini’ file exerts its influence over all the scripts in your system, eliminating the need for individual script editing.
However, it’s important to note that not all servers support ‘php.ini’ files, so it’s advisable to verify whether your server supports it before proceeding. If your server does support it, you can then employ this method to extend the PHP execution time.
On DreamHost servers, the equivalent of ‘php.ini’ files is referred to as ‘phprc.’ To begin, you’ll want to generate a new ‘phprc’ file. Access your SFTP dashboard and find your user directory.
Find the ‘phprc’ file within your website’s PHP version directory. Next, right-click on it and choose ‘View/Edit’ to insert your new code. You might encounter a warning during this process.
Click the checkbox labeled “Always use selection for all unassociated files” and click OK. This will open the file using your text editor. Then, you can input the following code to modify the maximum execution time:
max_execution_time = 500
This adjustment will set the maximum execution time to 500 seconds. After making this change, you’ll need to terminate the existing PHP processes to update the ‘phprc’ file and ensure the changes become active.
Increase the Maximum Execution Time in .htaccess
The ‘.htaccess’ file offers another option to modify the maximum execution time. This file governs alterations within the various directories of your WordPress site. Nevertheless, it’s important to note that not all servers employ the ‘.htaccess’ file, and it’s most frequently encountered in Apache servers.
You might opt for this approach if you’d rather avoid making changes to the ‘wp-config.php’ file and if your server doesn’t accommodate ‘php.ini’ files.
Before you begin, it’s advisable to create a backup of your ‘.htaccess’ file. This precaution allows you to restore it in case of significant errors. Simply duplicate the file and save it in a different location on your computer.
Next, utilize your selected SFTP tool to make modifications to the original ‘.htaccess’ file. If you are using the DreamHost file manager, you can right-click on the file and choose the ‘Edit’ option.
Otherwise, you can open it with your text editor. Then enter this code to change the maximum execution time:
php_value max_execution_time 300
You can substitute the “300” for any other amount you prefer. Finally, save the changes, and the file will apply them to your site.
Contact Your Hosting Provider to Request an Increase in Maximum Execution Time
If you’d rather not personally modify your site’s files, there is an alternative. You can get in touch with your hosting provider directly, and they can raise the maximum execution time for you.
This approach can be a great choice if you’re pressed for time or if you have limited technical expertise. However, keep in mind that it might come with an additional cost, depending on your hosting provider.
How We Can Support You?
With over 12 years of experience rooted in Kakkanadu, we stand out as a premier ‘Website Design Company in Kakkanadu, Ernakulam (Kochi).’ As a software development company in Kakkandu, Ernakulam (Kochi), our advanced and reliable services go beyond development. Whether initiating a new project or seeking IT consultation, we’re dedicated collaborators in achieving success. Contact us for Website Development, Software Development, Mobile App Development, or expert consultation. Let’s harness technology’s potential together to reach greater heights in Kakkanadu, Ernakulam (Kochi) and beyond.
Frequently asked questions
Dieutek Developments is located in Kakkanadu, Ernakulam (Kochi), with over a decade of experience in delivering high-quality IT solutions.
Dieutek Developments provides a comprehensive range of IT services, including website development, website redesign, custom software development, ecommerce store development, web and mobile app development, and digital marketing.
Certainly, Dieutek Developments offers concept-to-completion website development and website redesign services to cater to clients' specific needs.
Dieutek Developments excels in building ecommerce stores, providing customization options and expertise in integrating various platforms and tools, along with payment gateway integration both domestically and internationally.
Yes, Dieutek Developments offers mobile app development services for Android, iOS, Flutter, and hybrid platforms.
Absolutely, Dieutek Developments offers IT consultation services to assist clients in Kakkanadu, Ernakulam (Kochi), in aligning their IT strategies with their business goals.
Dieutek Developments has expertise in various industries, including Healthcare, Retail, E-commerce, Restaurants, Church, Education, NGO, Travel & Tourism, and Entertainment, providing tailored IT solutions for each sector.
Dieutek Developments boasts a team of 35+ professionals with over 13 years of experience in the IT industry, based in Kakkanadu, Ernakulam (Kochi).
The ‘max_execution_time’ error in WordPress, encountered when tasks surpass PHP’s time limit, is explored in this guide. As a prominent ‘Custom software development company in Kakkanadu, Ernakulam (Kochi)’ we address its causes and solutions. Learn to enhance site functionality by uninstalling plugins, adjusting execution time with specialized plugins, and modifying configuration files. The guide offers flexible options for users, stressing efficient site management. For Kerala-based businesses, including our website design company in Kakkanadu, Ernakualm (Kochi), it provides invaluable insights for resolving the ‘max_execution_time’ error and maintaining optimal website performance.