if you receive an "infinate loop detected in jerror"

If you receive an error " infinite loop detected in JERROR" you can try the following :

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

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

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Getting error cant create file, or cant upload files when istalling plugins and modules

If you receive an error indicating that you cant create file/folder , when installing modules and...

Fix for Joomla 404 component not found error when accessing the admin area - Joomla 2.5

When accessing the admin area in joomla 2.5 you might receive a "404 component not found...

Display detailed information rather than a generic 500 error

If you are receiving the dreaded 500 error, you can follow the below temporary patches to display...

Sending mail with Joomla websites

1. Enter your Joomla dashboard. 2. Click on "Site", "Global configuration". 3. Choose the...

Enabling Search engine friendly URLs (SEF) on Joomla websites using IIS Rewrite (Reccomended)

To enable search engine freindly urls in joomla you need to do the following1.  If it does not...