{"id":13397,"date":"2011-12-22T04:18:28","date_gmt":"2011-12-22T09:18:28","guid":{"rendered":"http:\/\/info.template-help.com\/?p=13397"},"modified":"2020-01-30T05:31:21","modified_gmt":"2020-01-30T10:31:21","slug":"joomla-infinite-loop-detected-in-jerror","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/joomla-infinite-loop-detected-in-jerror.html","title":{"rendered":"Joomla. Infinite loop detected in JError"},"content":{"rendered":"<p>\r\n<p>This tutorial is going to help you with the &quot;Infinite loop detected in JError&quot; in Joomla 1.7.<\/p>\r\n<p><!--more--><\/p>\r\n<p>  The following error: <strong>Infinite loop detected in JError<\/strong><\/p>\r\n<p>  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.<\/p>\r\n<p>  In order to solve the problem, you need to doublecheck if the following variables in your<br \/>\r\n  <strong>configuration.php<\/strong> file are correct:<\/p>\r\n<pre class=\"brush:php\">\r\n  public $dbtype = 'mysqli'; \/\/ if your server doesn't support mysqli, try\r\n  'mysql'\r\n  public $host = '[some host]';\r\n  public $user = '[some database user]';\r\n  public $password = '[some password]'; \/\/ wrong password could be the cause\r\n  public $db = '[some database]';\r\n  public $dbprefix = '[someprefix_]';\r\n  public $log_path = '\/logs';\r\n  public $tmp_path = '\/tmp';\r\n <\/pre>\r\n<p>  To get detailed information about the error, open the <strong>error.php<\/strong> file located  in <strong>\/libraries\/joomla\/error\/<\/strong> on your server. In the following code:<\/p>\r\n<pre class=\"brush:php\">\r\npublic static function throwError(&amp;$exception)\r\n  {\r\n  static $thrown = false;\r\n  \/\/ If thrown is hit again, we've come back to JError in the middle of throwing\r\n  another JError, so die!\r\n  if ($thrown) {\r\n  \/\/ echo debug_print_backtrace();\r\n  jexit(JText::_('JLIB_ERROR_INFINITE_LOOP'));\r\n}\r\n<\/pre>\r\n<p>  change this line<\/p>\r\n<pre class=\"brush:php\">\r\n\/\/ echo debug_print_backtrace();<\/pre>\r\n<p>  to:<\/p>\r\n<pre class=\"brush:php\">\r\nprint&quot;&lt;pre&gt;&quot;;\r\n  echo debug_print_backtrace();\r\nprint&quot;&lt;\/pre&gt;&quot;;<\/pre>\r\n<p>  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<br \/>\r\n  corrected.<\/p>\r\n<p> Please, also watch the video tutorial below.<\/p>\r\n<p>Joomla. Infinite loop detected in JError<\/p>\r\n<p><!--more--> <\/p>\r\n<p><!--more--> <\/p>\r\n<p><!--more--><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to help you with the &quot;Infinite loop detected in JError&quot; in Joomla 1.7.<\/p>\n","protected":false},"author":30,"featured_media":13399,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[724],"tags":[2564,1120,483,873,1087],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/13397"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=13397"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/13397\/revisions"}],"predecessor-version":[{"id":85931,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/13397\/revisions\/85931"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/13399"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=13397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=13397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=13397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}