How to Fix Fatal Error: Maximum execution time exceeded in wordpress

Blogs Wordpress

Recently one of my friend told me that he was not  able to install the WordPress theme due to the Fatal Error: Maximum Execution Time Exceeded in WordPress. Steps to Fix this errors is very simple, but it can be really frustrating for beginners. In this article, we will show you how to fix fatal error: maximum execution time exceeded in WordPress.

Maximum execution time exceeded in WordPress

Why Maximum Execution Time Exceeded Error Occurs ?

WordPress is coded mainly in PHP programming language. To protect web servers from abuse , we can set a time limit set for how long a PHP script can run. Sometimes a higher value set by some WordPress hosting providers but some hosting providers set it to a lower level. When a script reaches the maximum execution time limit, it results into maximum execution time exceeded error.

Fixing Maximum Execution Time Exceeded Error

There are two ways you can fix this error.

Method 1: Editing .htaccess File Manually

Simply connect to your website using an FTP client.




Your .htaccess file is located in the same folder as your /wp-content/ and /wp-admin/ folders.

Next open .htaccess file in editor & enter this:

1
php_value max_execution_time 300

After adding this code, the value of maximum execution time increased to 300 seconds (5 minutes). if still showing error, then  the value of maximum execution time to 600.

Method 2: Using a Plugin

If you don’t want to edit .htaccess file manually , then try  installing the WP Maximum Execution Time Exceeded plugin.




That’s all. The plugin help you to increases the maximum execution time to 300 seconds.

We hope this article helped you fix fatal error: maximum execution time exceeded in WordPress.

Leave a Reply

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