If you receive an error " infinite loop detected in JERROR" you can try the following :
- HostworX takes no responsibility if you edit these files and damage them, ensure you know what you are doing or rather ask our support engineers to help.
-
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"<pre>"; echo debug_print_backtrace(); print"</pre>";
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. -
Once you have resolved the issue comment the 3 lines out by placing a "//" in front of each of the lines of code and saving the page