For high-quality PHP scripts, a 30-second time is more than enough. However, website owners often have to increase the maximum execution time for their sites depending upon the code and server response. Some developers even set it to as high as 300 but going over this number isn’t advised by experts. When users see ‘Fatal Error”, they tend to worry. However, maximum execution time error is just a regular error and can be easily resolved. This becomes a problem when you start losing leads, sales or readers because it may show your users on your site’s frontend that your website is going through technical difficulties. Therefore, it may require your urgent attention. Max_execution_time error is nothing serious. It just means that the PHP scripts you run take longer to complete than the limit allows. Standard execution time limit is 30 seconds and varies according to the hosting providers. This is basically a useful limit set to avoid any potential server lockup. It usually occurs when trying to upload a particularly larger file like a template or a plugin which obviously takes longer than the set limit. You can either increase the limit permanently or reverse the changes after the completion of your long operations. Moreover, you can delete the WordPress theme or plugin that is causing the error if you don’t want to make edits in your core website files. This solution will remove the error on the frontend but will not increase the maximum execution time. Ways to Fix max_execution_time in WordPress Furthermore, this solution is only suitable in case you manage to find a replacement for the offending item. When you start receiving the “Fatal Error: Memory Size Exhausted”, it is time to make some changes in your WordPress. Following are the three different ways you can increase the maximum execution time for your WordPress site. I’ve explained all the methods step by step to make the tutorial easier to follow. However, keep in mind that you are about to make changes in the core files of your websites. Therefore, it is absolutely essential that you follow the steps carefully and not break your website. For a safer side, create a backup of the current version of your website before making changes so you can easily restore it in case anything goes wrong. Let’s get started! Method 1: Increase max_execution_time in WordPress using wp-config.phpįirst method I am going to explain is increasing the maximum execution time for WordPress through the wp-config.php file. This file is basically the default configuration file of the WordPress website. This method is useful to you if you use a shared hosting service. In fact, you can increase the execution time according to your specific requirement. Follow the given instruction to increase max_execution_time using wp-config.php file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |