How to Fix Fatal Error: Maximum Execution Time Exceeded in WordPress

The Essential WordPress Plugin Checklist
March 5, 2019
Text String Replace in Wordpress
Changing text strings in WordPress
July 9, 2020

How to Fix Fatal Error: Maximum Execution Time Exceeded in WordPressGetting the  ‘Fatal error: Maximum execution time of 30 seconds exceeded’ on your screen? Uh oh.

Maybe you were trying to update a theme or plugin…

Usually this problem can occur when a PHP snippet in WordPress takes too long to run and reaches the maximum time limit that is set in your server / hosting environment.

The limit matters because it generally stops abuse of server resources.

Below we show you how to Fix Fatal Error: Maximum Execution Time Exceeded in WordPress


Steps to fix the error

Note: always take a backup copy of your .htaccess file before making any changes.

To fix the error. We can add the below snippet to the bottom of your .htaccess file on your server.

php_value max_execution_time 300

Ok, now save the .htaccess file. Check whether the error has been resolved. If not, try increasing the limit to 600 instead.

Note: always take a backup copy of your .htaccess file before making any changes.


Still having issues? Get in touch with one of the team today and we’ll investigate for you.

Click here to speak to us.

Jason
Jason
In 1999 I created my very first website, it all went from there. Founder of WP Manager (wpmanager.co.uk). WordPress Developer with a passion for technology and travel.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Send this to a friend