+ Reply to Thread
Results 1 to 9 of 9

Thread: PHP Fatal error: Maximum execution time of 10 seconds exceeded

  1. #1

    PHP Fatal error: Maximum execution time of 10 seconds exceeded

    PHP Fatal error: Maximum execution time of 10 seconds exceeded in /home/xxx/public_html/includes/classes/reefless.class.php on line 296

    what's with this error? my error log is full with this error, repeted over and over again?

  2. #2
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    Hello,

    You can circumvent it by adding the following line:

    ini_set('max_execution_time', 120);

    120 - is the number of seconds.

  3. #3
    Quote Originally Posted by Vladimir View Post
    Hello,

    You can circumvent it by adding the following line:

    ini_set('max_execution_time', 120);

    120 - is the number of seconds.
    in htaccess?

  4. #4
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    in htaccess?
    No, you can add this code in php script (for example: index.php)

    Below is an option for htaccess:

    php_value max_execution_time 120

  5. #5
    ok. thank you.

  6. #6
    Quote Originally Posted by Vladimir View Post
    No, you can add this code in php script (for example: index.php)

    Below is an option for htaccess:

    php_value max_execution_time 120
    error still apears

  7. #7
    In addition what you did you can try

    set_time_limit(0);


    Reason of the problem in some page which can't be reached in the reefless -> getPageContent function

    I think the following code will help to remove this error

    open classes/reefless.class.php find the function getPageContent and change as below

    Code:
    Only registered members can view the code.

  8. #8
    Junior Member
    Join Date
    Jan 2013
    Posts
    5
    Can anyone confirm if this fixed the PHP Fatal error: Maximum execution time of 10 seconds exceeded error?

    Thanks,

  9. #9
    Junior Member
    Join Date
    Jan 2013
    Posts
    5
    I have triehttp://www.flynax.com/forum/newreply.php?p=5369&noquote=1d this modification without the set_time_limit(0); and it works like a charm...

+ Reply to Thread