Fatal error: Maximum execution time of 30 seconds exceeded

You’ll see this fatal error of “Maximum execution time of 30 seconds exceeded in….” when you try to update your WordPress theme, plugin, or the WordPress itself. This error generally occurs in Localhost. However, 30 seconds is enough to execute any good script but in your localhost (XAMPP/WAMP/MAMP/etc) it may take more than 30 seconds.

Time needed: 5 minutes.

How to fix Fatal error: Maximum execution time of 30 seconds exceeded

  1. Open the HTACCESS file in a text editor

    This “.htaccess” file lives in the root directory where ‘wp-admin, wp-content, wp-includes’ live. Open the file in a text editor.wordpress root directory

  2. Increase the maximum execution time

    Write the following one line of code at the bottom of your “.htaccess” file to increase the maximum execution time up to 300 seconds.
    php_value max_execution_time 300
    Increase maximum execution time

#add the bellow line at the bottom of your .htaccess file
php_value max_execution_time 300

Don’t forget to save your file.

Now go back to your WordPress dashboard and try to update whatever you need. I am pretty much sure it will solve the fatal error of maximum time execution. Therefore, if you still have issues, let me know.