View Full Version : PHP Fatal error: Maximum execution time of 10 seconds exceeded
Petrache Nicolae
November 21, 2012, 06:59 PM
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?
Vladimir
November 30, 2012, 04:01 AM
Hello,
You can circumvent it by adding the following line:
ini_set('max_execution_time', 120);
120 - is the number of seconds.
Petrache Nicolae
November 30, 2012, 06:07 AM
Hello,
You can circumvent it by adding the following line:
ini_set('max_execution_time', 120);
120 - is the number of seconds.
in htaccess?
Vladimir
November 30, 2012, 06:29 AM
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
Petrache Nicolae
November 30, 2012, 07:15 AM
ok. thank you.
Petrache Nicolae
December 1, 2012, 11:06 AM
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
Mike
December 7, 2012, 10:12 AM
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
function getPageContent($url)
{
$content = null;
$user_agent = 'Flynax Bot';
/**add this code**/
$headers = get_headers( $url );
if( $headers[0] != 'HTTP/1.1 200 OK' ) {
return;
}
/**end**/
set_time_limit( $this -> time_limit );
if (ini_get('allow_url_fopen'))
{
...
Pablo Meyer
May 10, 2013, 05:46 PM
Can anyone confirm if this fixed the PHP Fatal error: Maximum execution time of 10 seconds exceeded error?
Thanks,
Pablo Meyer
May 13, 2013, 02:58 PM
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...
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.