![]() |
|
Unable to download zip files - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Unable to download zip files (/thread-9926.html) |
Unable to download zip files - fava64 - 2012-05-02 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? Thanks, Fabio Unable to download zip files - acrylian - 2012-05-02 Recent topic already: http://www.zenphoto.org/support/topic.php?id=10892 Unable to download zip files - fava64 - 2012-05-04 Thanks, I saw this topic already. But I don't think there is an argument for a memory problem, because:
Unable to download zip files - acrylian - 2012-05-04 Did you try a direct download? Are there errors in your server error log or anywhere else? Did you try 1.4.2.3? Sorry, besides that I have no idea right now. Seems to be working for me. Unable to download zip files - fava64 - 2012-05-06 The Link in the Gallery: 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). Unable to download zip files - acrylian - 2012-05-07 Sorry, I have no idea. But you really should get access to your server logs, that is important not only for this. Unable to download zip files - spontex - 2012-05-09 Same bug here with ZenPhoto 1.4.1.6. I am also hosted by infomaniak.ch. Mutualized hosting does not allow to read the server PHP logs. However, there should exist some ZenPhoto logs (same as "Security log" and "Setup log"). The empty files contain the following warning messages, which seem to show that no .zip file was generated: Warning: filesize() [function.filesize]: stat failed for /home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/albums/album_name/.zip in /home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/zp-core/album-zip.php on line 84 Warning: filesize() [function.filesize]: stat failed for /home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/albums/album_name/.zip in /home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/zp-core/functions.php on line 566 Warning: 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 /home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/zp-core/functions.php on line 569 Warning: unlink(/home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/albums/album_name/.zip) [function.unlink]: Aucun fichier ou répertoire de ce type in /home/www/bb680d9d37a9f4cbbc9e7ec067a53ef7/web/user_name/zenphoto/zp-core/album-zip.php on line 87 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. Unable to download zip files - spontex - 2012-05-09 Solved here by giving the recursive write access rights to the albums directories by using a FTP client such as FileZilla. Unable to download zip files - fava64 - 2012-05-15 Hi spontex, Unable to download zip files - fava64 - 2012-05-15 OK, I have tested 2777 on the folder album; know something happens. But infomaniak limits the execution-time for a script to 10 seconds (and 125 MB). Is it possible to create zip-files without using the installation-permission (which is limited to 10 usages per year)? Unable to download zip files - acrylian - 2012-05-15 If you use the Zenphoto albumzip function the zip file is created on and by the server. Since albums can and therefore their zip files can be quite big your server needs to be able to handle that. Yours apparently is not (For really big once most will probably not). Or try the 1.4.3 beta which has the albumzipstream incorporated (within the downloadlist plugin) which should be less memory consuming at least. Unable to download zip files - fava64 - 2012-05-20 I have know uploaded a zip-file to the album-directory (created at home). Its size is about 230MB. Now, when I click on the download link, a zip-File is downloaded, it opens the download-dialog and indicates a file-size of 87MB. When I download the file, its size is in fact only 87MB and nothing is shown when I decompress it. Then, I have uploaded and activated the albumZipStream plugin (a new folder in /plugin, and the main-file directly in the plugin-folder) and changed the function in the album.php to printAlbumZipStream() (I use the default theme). Nothing changed. Unable to download zip files - acrylian - 2012-05-20 If you uploaded a manually created zip file and then use the albumzip function to download it, it will not be used as the function is normally generating it (unless you use the persistent archive option). You will need a direct link. Albumzipstream will also not work as that generates the zip archive on the fly so not using your manually created one either. |