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.
- Access your .htaccess file via FTP.
- Add this line to the file:
php_value max_execution_time 300
- 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.
- Locate your php.ini file (you may need to create one if it doesn’t exist).
- Add or edit this line:
max_execution_time = 300
- 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.
- Install and activate the WP Maximum Execution Time Exceeded WordPress plugin.
- 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.