Today in this video you will learn How To Fix 'Fatal Error Maximum Execution Time Exceeded in WordPress.
If you are seeing “fatal error: maximum execution time exceeded” when you try to access your WordPress site, it means a part of your WordPress code is taking too long to execute and your server is stopping the execution.
Causes for Fatal Error: Maximum Execution Time Exceeded in WordPress
Web servers set a time limit on how long a script can run. This is done to prevent the web server from abuse. Since WordPress is made up of PHP scripts, each script has to run completely within the set time limit.
This time limit is usually 30 seconds, and in most cases, this is more than enough time for a script to run. However, if a PHP script runs for longer than the set time limit, PHP cuts short the execution. It then returns the fatal error: maximum execution time exceeded message.
The easiest way to increase the maximum execution time limit is simply adding a small script in wp-config.php file. To do this log into your cPanel and go to File Manager section. Next go the Wordpress directory and find wp-config.php. Right click on wp-config.php to Edit
Next, add this line to the bottom of the file
set_time_limit(300);
Now save this file and close it.
And that’s how to manually increase the execution time limit.
That’s all I hope this tutorial will help to know that how to fix Fatal Error- Maximum Execution Time Exceeded in WordPress.
Hope this helps!!!
For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channel -
https://youtube.com/redserverhost.com
Facebook Page-
https://facebook.com/redserverhost
Twitter Page-
https://twitter.com/redserverhost.com
Official Website-
https://redserverhost.com
If you have any query, feel free to let us know via the comments section below.
Тэги:
#How_to_Fix_Fatal_Error:_Maximum_Execution_Time_Exceeded #How_to_increase_Maximum_Execution_Time_for_WordPress_site #How_to_Fix_Fatal_Error:_max_execution_time_Exceeded_Error #Maximum_execution_time_exceeded #How_do_I_change_the_maximum_execution_time_in_WordPress #How_do_I_increase_my_max_execution_time #How_do_I_fix_fatal_errors_in_WordPress #How_To_Fix_'Fatal_Error_Maximum_Execution_Time_Exceeded