Feb 13, 2012

Infinite loop detected in JError in Joomla



This tutorial is going to help you with the "Infinite loop detected in JError" in Joomla 1.7.

The following error: Infinite loop detected in JError

occurs due to some parameters in configuration.php that are wrongly filled in. This may happen when you have moved a Joomla 1.7 site from your local server to a remote server.

In order to solve the problem, you need to doublecheck if the following variables in your
configuration.php file are correct:

public $dbtype = 'mysqli'; // if your server doesn't support mysqli, try
'mysql'
public $host = '[some host]';
public $user = '[some database user]';
public $password = '[some password]'; // wrong password could be the cause
public $db = '[some database]';
public $dbprefix = '[someprefix_]';
public $log_path = '/logs';
public $tmp_path = '/tmp';



To get detailed information about the error, open the error.php file file located in /libraries/joomla/error/ on your server. In the following code:

public static function throwError(&$exception)
{
static $thrown = false;
// If thrown is hit again, we've come back to JError in the middle of throwing
another JError, so die!
if ($thrown) {
// echo debug_print_backtrace();
jexit(JText::_('JLIB_ERROR_INFINITE_LOOP'));
}


change this line

// echo debug_print_backtrace();

to:

print"
";
echo debug_print_backtrace();
print"
";


Once you have done that, save the changes, go back to your site and instead of the former error you are going to see more detailed information on what settings in your configuration.php should be
corrected.

0 comments:

Post a Comment

 

Copyright © 2011 Best WebHosting Tips | Design by Kenga Ads-template