Demo image Demo image Demo image Demo image Demo image Demo image

Infinite loop detected in JError in Joomla 1.7

  • Thursday, February 23, 2012
  • zana991
  • Infinite loop detected in JError in Joomla 1.7
    Info non-talk.png
    This recently added article requires a review
    Info non-talk.png
    This page or section is in the middle of an expansion or major revamping.

    However, you are welcome to assist in its construction by editing it as well. Please view the edit history should you wish to contact the person who placed this template. If the page has not been edited in several days please remove this template.
    While actively editing, consider adding {{inuse}} to reduce edit conflicts.

    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();
    jexit(JText::_('JLIB_ERROR_INFINITE_LOOP'));
    }

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

    // echo debug_print_backtrace();

    change to:

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

    0 comments: