WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error in wp-includes\http.php and wp-db.php (2 posts)

  1. ucallrt
    Member
    Posted 5 years ago #

    Here's what I'm seeing on a regular basis when I save or publish a post:

    Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\vhosts\bikeworldnews.com\httpdocs\wp-includes\http.php on line 1006

    Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\vhosts\bikeworldnews.com\httpdocs\wp-includes\wp-db.php on line 359

    It's not breaking anything, as I just hit "refresh" and it completes loading the page, but I certainly wouldn't mind if it went away.

  2. Walker
    Member
    Posted 4 years ago #

    Your server is either very slow and takes more than 30 seconds to process the query or 30 second time limit for script execution is too less. You should increase this limit.

    Search and modify this line in your php.ini file if you have access to your server (I guess you have based on the directory structure the error gives):

    max_execution_time = 30 ; Maximum execution time of each script, in seconds

    Another way is to add this code to your wp-config.php (might not work on all servers):

    set_time_limit (60); // replace 60 with value in seconds, use 0 for unlimited script execution time

    Third way is to set this in your wp-config.php:

    ini_set('max_execution_time', 300); //300 seconds = 5 minutes

Topic Closed

This topic has been closed to new replies.

About this Topic