Infinite loop detected in JError in Joomla 1.7

This page has been archived. This page contains information for an unsupported Joomla! version or is no longer relevant. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

When moving a locally developed Joomla 1.7 site to a server results in the error Infinite loop detected in JError in Joomla 1.7 there's something wrong with the configuration in configuration.php

First double check the following variables:

 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, edit on the server /libraries/joomla/error/error.php

 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();

remove the //commenting tag and add the < pre > tags to get a readable output

 // echo debug_print_backtrace();

change to:

 echo debug_print_backtrace();

Now Joomla will show a more detailed error that might give you some clues of how to correct the settings in your configuration.php. Don't forget to switch off the detailed error reporting afterwards by commenting the echo debug_print_backtrace();.