How To Fix WordPress Maximum Time Limit Exceeded

Fatal error: Maximum execution time of 30 seconds exceeded.

You may notice, sometimes when we try to update or install themes/plugins WordPress shows this message Fatal error: Maximum execution time of 30 seconds exceeded.

Fatal error: Maximum execution time of 30 seconds exceeded.

Basically, this error occurs when a PHP file takes a long time to respond and reaches the maximum time limit which was set by your hosting providers. Most of the hosting server default maximum time limit is 30 seconds.

In this article, we’ll fix this error by extending the execution time limit.

In cPanel paper_lantern theme go to the section SOFTWARE click the Select PHP Version

After that, you’ll see a button Switch to PHP Options by clicking this button you’re switching PHP Extension settings to PHP Options settings. And now you’ll see the options max_execution_time

If you couldn’t find this option in your cPanel then you can follow below steps

You’ll need to edit .htaccess file from your site root folder. Go to your site root directory and find the .htaccess file then add this single line of code

php_value max_execution_time 300

Now, your execution time limit is 300 seconds.

If this method not working on your site then try to do it by creating or editing the php.ini file.

To do that go to file manager -> create new file->php.ini

After creating edit the php.ini file and add this line of code then save the file


Now try again install/update your theme/plugin if the problem still exists please contact your hosting provider.

Leave a Reply

Sign Up for Our Newsletters

Get notified of the best deals on our WordPress themes.

You May Also Like