Hello,
What a nice piece of software. Thanks.
Previously, I had an 1.2.6 installation of ZenPhoto, and it worked well, including the printAlbumZip function. I perforemed a new installation with 1.4.2.1, and I continue to use the printAlbumZip()-Function.
Now, it only returns an about 990 Byte-File with no content. This is independent of the fact whether a valid zip-file already exists in the album-directory or it has to be created.
Does anybody have an idea?
(I am using php 5.3 and MySQL 5.x, but the problem wasn't different with php 5.2).
Thanks, Fabio
Comments
- it worked before the version update
- lots of zip-files are already generated and present on the server but not downloaded
Fabio
Sorry, besides that I have no idea right now. Seems to be working for me.
http://www.xy.z/zen/zp-core/album-zip.php?album=2009_07_13_Innichen
does not work.
The direct Link:
http://www.xy.z/zen/albums/2009_07_13_Innichen.zip
works well.
In this example, the zip-file already exists.
With an non-existing zip-file, no file is generated on the server with the gallery-link and the output is the same.
The server where zenphoto is installed is a virtual server hosted by infomaniak.ch; therefore I don't have any acces to the log files (or I don't know how to access).
I have not yet tried to update to 1.4.2.3, but logically, it is the next thing I have to do.
Thank you for your follow-up.
Fabio
The empty files contain the following warning messages, which seem to show that no .zip file was generated:
<b>Warning</b>: filesize() [function.filesize]: stat failed for /home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/albums/album_name/.zip in <b>/home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/zp-core/album-zip.php</b> on line <b>84</b>
<b>Warning</b>: filesize() [function.filesize]: stat failed for /home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/albums/album_name/.zip in <b>/home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/zp-core/functions.php</b> on line <b>566</b>
<b>Warning</b>: fopen(/home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/albums/album_name/.zip) [function.fopen]: failed to open stream: Aucun fichier ou répertoire de ce type in <b>/home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/zp-core/functions.php</b> on line <b>569</b>
<b>Warning</b>: unlink(/home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/albums/album_name/.zip) [function.unlink]: Aucun fichier ou répertoire de ce type in <b>/home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/zp-core/album-zip.php</b> on line <b>87</b>
I could solve this bug by recursively giving the write access rights to the albums directories using a FTP client such as FileZilla. I always use FTP upload so I never needed to have the "web user" to be able to write in these directories.
In fact, you can access some error messages on infomanik via your browser on:
http://yoursite/http-errors (and log in as admin)
On this site, I saw the same error massage as yours.
In fact, I have a lot of problems with access rights, because the server uses the user httpd and creates new files and folder with this owner, but I can't change this users rights. The user httpd is not part of the same group as my ftp-accounts/users; I only can change the owner of new files and folder from httpd to an other user. So, most CMS only works with 777-permissions. What are the access permissions you gave to the album-folders? 755? 775? 777?
Thanks
Fabio
Or do I have to create zip-files at home and then to upload them?
A test shows that already existing zip-files can be downloaded now.
Fabio
Or try the 1.4.3 beta which has the albumzipstream incorporated (within the downloadlist plugin) which should be less memory consuming at least.
Fabio
Albumzipstream will also not work as that generates the zip archive on the fly so not using your manually created one either.