When trying to create a zipfile with
http://localhost/zenphoto/zp-core/album-zip.php?album=011140I get a 500 status: Internal Server Error
What's more.. when I point to a non existing album like
?album=foobar I get a 200 status and not the 404 like I should from createAlbumZip()
- I tried with both "enable persistent archives" on and off
- I have set my permissions very loose (777) to check it out but that does not seem to be the problem.
Comments
You should check the permissions on the specific script file. Also report back on any warnings that setup gave when you installed.
Setup Log: Zenphoto Setup v1.4.1.1[7644] Fri, 08 Jul 2011 11:10:10 +0200
Completed system check
Migrating lib-auth data version => version 3
Notice: "Module mod_rewrite" is working. The Zenphoto option "mod_rewrite" will be set to "enabled".
I have no clue what's going on.
Also why no 404 with non existing album name??
Ok on the downloadList.php docs:
http://www.zenphoto.org/documentation/plugins/_zp-extensions---downloadList.php.html $albumobj??
In my album.php template file I do:
`
<?php
echo printDownloadLinkAlbumZip(); // nothing
echo printDownloadLinkAlbumZip($_zp_current_album); // nothing
?>
`
http://www.zenphoto.org/news/how-to-read-the-zenphoto-functions-guide
Btw, to save you some work, just use:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintAlbumZip.
The downloadlist plugin is not required for this and just provides an download count and a "masked" download link.
`printDownloadLinkAlbumZip('test download', $_zp_current_album);` prints the link and stats as wel as `printAlbumZip()`
But clicking on the link results in a blank http://localhost/zenphoto/zp-core/album-zip.php?album=011140
No zip is created in any of the folders??
I could not find anything on the file documentation at first glance though. It is a little old already (2009) in computer terms as well...
So it seems not to require the zip or zlib PHP module specifially, at least no real dependency is noted anywhere...
`[11-Jul-2011 20:16:03] PHP Fatal error: Call to a member function getPersistentArchive() on a non-object in /Applications/MAMP/htdocs/zenphoto/zp-core/album-zip.php on line 66`
Indeed it works in the latest nightly.
I thought that v1.4.1.1 was updated with the latest fixes, but quite a few differences.
Anyway, with the "enable persistent archives" option checked and using `printAlbumZip();` I can't find the zipfile anywhere though. Where should the zip be written?
{edit] 1.4.1.1 is the latest release build, but the Trunk nightly builds contain any fixes generated post the release.