Login



Advertisements

Welcome, Guest
Username: Password: Remember me

TOPIC: Error running component: Infinite loop detected

Error running component: Infinite loop detected 10 years 2 months ago #2

Hi Sam,

I just installed your component on my site to update it from 1.5.10 to 1.5.14 and I got the following error message at Step 3:

* JFolder::create: Infinite loop detected
* Unable to create destination

Failed to extract archive!

Given the positive responses on the Joomla! site I suspect I've gone wrong somewhere but I can't see how as it's very straight-forward.

Any enlightenment would be appreciated.

Thanks,

Damian.
The administrator has disabled public write access.

Re: Error running component: Infinite loop detected 10 years 1 month ago #4

  • pasamio
  • pasamio's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 30
  • Karma: 0
Hi Damian,

There is a strange error that seems to occur with certain sites and the 1.5.10 to 1.5.14 upgrade. Have you tried the alternate extractors? Click on params at the top right. You can also try using the full package to see if this will change the situation.
The administrator has disabled public write access.

Re: Error running component: Infinite loop detecte 10 years 1 month ago #11

  • pasamio
  • pasamio's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 30
  • Karma: 0
I had another question, are you running in FTP mode as well?
The administrator has disabled public write access.

Re:Error running component: Infinite loop detected 9 years 11 months ago #65

  • wlrdq
  • wlrdq's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Sam,

I love this component! I have to keep our Joomla! sites up to date and this saves me a lot of time and really helps automate the process. We are suggesting it to everyone on our site:
http://www.cmsmarket.com/resources/dev-corner/101-how-to-update-joomla

Great work!!


I was getting the infinite loop error:
* JFolder::create: Infinite loop detected
* Unable to create destination

and this is how I fixed it:
.../administrator/components/com_jupdateman/libraries/joomla/filesystem/archive/tar.php
// Make sure the destination folder exists
if (!is_dir(dirname($path)) && !JFolder::create(dirname($path)))

The issue is that for a file in the root directory, JFolder::create will be called and it checks to make sure the parent of the folder (which will be outside my root) exists without first making sure the folder exists:
.../libraries/joomla/filesystem/folder.php
function create($path = '', $mode = 0755)
{
	// Initialize variables
	jimport('joomla.client.helper');
	$ftpOptions = JClientHelper::getCredentials('ftp');
	static $nested = 0;

	// Check to make sure the path valid and clean
	$path = JPath::clean($path);

	// Check if parent dir exists
	$parent = dirname($path);
	if (!JFolder::exists($parent)) {

Since my site has "open_basedir restriction" enabled, this causes warnings as it walks up to the root and then you get the infinite loop:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts/MYDOMAIN.com) is not within the allowed path(s): (/var/www/vhosts/MYDOMAIN.com/httpdocs:/tmp) in /var/www/vhosts/MYDOMAIN.com/httpdocs/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts) is not within the allowed path(s): (/var/www/vhosts/MYDOMAIN.com/httpdocs:/tmp) in /var/www/vhosts/MYDOMAIN.com/httpdocs/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www) is not within the allowed path(s): (/var/www/vhosts/MYDOMAIN.com/httpdocs:/tmp) in /var/www/vhosts/MYDOMAIN.com/httpdocs/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var) is not within the allowed path(s): (/var/www/vhosts/MYDOMAIN.com/httpdocs:/tmp) in /var/www/vhosts/MYDOMAIN.com/httpdocs/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/MYDOMAIN.com/httpdocs:/tmp) in /var/www/vhosts/MYDOMAIN.com/httpdocs/libraries/joomla/filesystem/folder.php on line 392

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/MYDOMAIN.com/httpdocs:/tmp) in /var/www/vhosts/MYDOMAIN.com/httpdocs/libraries/joomla/filesystem/folder.php on line 392

I would love for this to be fixed in core, but I think that will take longer. Plus I wanted to tell you how much I love your component :cheer:

Thanks again!
The administrator has disabled public write access.
Time to create page: 0.121 seconds