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

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

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

Spread the love

The Fatal Error: Maximum Execution Time Exceeded is common when WordPress is unable to complete a task within the default time limit set on your server. This error often appears during plugin or theme updates.


What Causes the Fatal Error: Maximum Execution Time Exceeded?

This error occurs because PHP scripts are limited by the maximum execution time set by your hosting server. If a script takes longer than allowed, WordPress throws this error.


Step-by-Step Guide to Fix the Maximum Execution Time Exceeded Error

Step 1: Increase Maximum Execution Time

You can increase the maximum execution time to allow more time for scripts to complete.

  1. Access your .htaccess file via FTP.
  2. Add this line to the file:

php_value max_execution_time 300

  1. Save and upload the file back to your server.

Step 2: Modify php.ini File

If you have access to your php.ini file, increase the time limit there.

  1. Locate your php.ini file (you may need to create one if it doesn’t exist).
  2. Add or edit this line:

max_execution_time = 300

  1. Save the file and restart your web server.

Step 3: Use a Plugin to Increase Time Limit

If you’re uncomfortable editing files, you can use a plugin like WP Maximum Execution Time Exceeded to extend the time limit.

  1. Install and activate the WP Maximum Execution Time Exceeded WordPress plugin.
  2. Set the maximum execution time to 300 seconds or higher.

Conclusion

The Fatal Error: Maximum Execution Time Exceeded is a simple issue that can be fixed by increasing your PHP execution time. If you continue to face problems, Craftwebx can help you with advanced WordPress troubleshooting.

Leave a Reply