Categories

Featured templates

Joomla. Infinite loop detected in JError

Norman Fisher December 22, 2011
Rating: 3.5/5. From 2 votes.
Please wait...

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 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.

Please, also watch the video tutorial below.

Joomla. Infinite loop detected in JError

Joomla Responsive Templates
This entry was posted in Joomla! Tutorials and tagged archived_tutorial, infinite, joomla, loop, message. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket