How to Fix the WordPress max_execution_time Fatal Error

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Annie_P
    Member
    • Aug 2022
    • 88

    How to Fix the WordPress max_execution_time Fatal Error

    How can I fix the WordPress max_execution_time fatal error? Any suggestions or solutions to resolve this issue?
  • Delaney martin
    Senior Member
    • Jun 2022
    • 102

    #2
    To fix the max_execution_time exceeded fatal error in WordPress, you can follow these three methods:

    1. Manually Editing the .htaccess File
    • Log into cPanel using your username and password.
    • Open File Manager in the Files section.
    • Navigate to the public_html directory.
    • Ensure the option to show hidden files is enabled.
    • Locate the .htaccess file in the public_html directory.
    • Right-click on the .htaccess file and select Edit or Code Edit.
    • Add the line php_value max_execution_time 60 at the bottom of the file.
    • Save the changes by clicking on the Save Changes button.
    • If needed, increase the value to 120 or 180 seconds for a longer execution time.
    2. Changing max_execution_time via cPanel
    • Log into cPanel using your credentials.
    • Go to the Software section.
    • Click on Select PHP Version.
    • Access the Options tab.
    • Locate the max_execution_time setting.
    • Adjust the value as needed (e.g., 300 seconds).
    • Save the changes to apply the new setting.
    3. Installing a Plugin
    • Install a plugin like Google Pagespeed Insights from your WordPress dashboard and activate it.
    • Go to Tools -> Pagespeed Insights, scroll down to Advanced Configuration, and modify the maximum execution time as necessary. It’s advisable to stick with default settings for most websites.
    • Save your options, and the plugin will update the .htaccess file automatically.


    These methods will help you increase the max execution time limit for your PHP scripts in WordPress.

    Comment

    Working...
    X