Page 1 of 1

Possible failiure when installing Gallery in J1.6

Posted: 12 Jan 2011, 03:40
by KingJackaL
This issue is OS-dependent, but I noticed it on our servers, and most users won't have the skills to figure out what's going on, so this is a heads-up.

I found our Joomla 1.6 sites were failing to install the latest version of Phoca Gallery, with 4 errors ending in:
JInstaller: :Install: Cannot find Joomla XML setup file
This turned out to be because the latest version of Phoca has 843 files and folders in the package. v2.7.0 for example (for Joomla 1.5) has 748 files.

Joomla extracts ZIP files using the JArchive library, which in turn uses PHP 5's ZipArchive library. This library has a (IMHO rather stupid) limitation in that it can only extract or create archives with less files than your OS's file handle limit. There's a good discussion here:
http://pecl.php.net/bugs/bug.php?id=8714
This is referenced from a PHP discussion here:
http://bugs.php.net/bug.php?id=40873

So basically, our servers have a limit around 800. Extensions with more files/folders in their package files will not install properly on our servers (and I suspect many other servers). This hasn't been an issue for us before (and we have 100's of Joomla sites), because components don't tend to have that many files in their packages.

This isn't a bug with Phoca exactly, but it may be something you guys want to consider when packaging your component, as the error can be quite confusing.


Workaround:
- upload the package to your server
- extract it using a more capable zip archive application (such as the linux command line tool)
- use Joomla's "Install from Directory" feature

Re: Possible failiure when installing Gallery in J1.6

Posted: 12 Jan 2011, 15:21
by Jan
Hi, thank you for this very useful info. I have added this information to Phoca Gallery Install site and to article:

https://www.phoca.cz/documents/2-phoca-g ... setup-file

Thank you, Jan