![]() |
|
printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' (/thread-13392.html) |
printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - davidarnoult - 17-04-2020 Hallo! When defining the album folder class option to "external" with the correct full path $conf['album_folder'], the zip file generated by printDownloadAlbumZipURL contains all the files structure but with 0 bytes. It looks like it cannot access to original files. Permissions are all OK (www-data + ). I do not find any logs about this error. Is it a bug or a feature request ;-) ? Any ideas? Thanks printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - acrylian - 17-04-2020 Just quickly tried locally with an external albums folder one level above the webroot and it worked for me (58 MB file). Did you look in all logs incl. the PHP server error log? Without an error I have no idea. How large is the album you tried? Although the zip stream librarry we use should help with large files, it is quite memory heavy task if the album is very large with lots of large images. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - acrylian - 17-04-2020 @fretzl however could reproduce it. Now we need to find out what's the difference. So far I can only reproduce that it does not work if you create the zip from cache (meaning default sized images) but that is independent from external or not. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - davidarnoult - 18-04-2020 1/ I have upgraded all php settings 6/ It does not work when I just switch to Zip file is correctly generated with all the files but with 0 bytes size. This happens with from the album (downloadList_zipFromCache) option in the extension settings.. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - davidarnoult - 18-04-2020 My environnement is PHP Version 7.3.14-1~deb10u1 printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - acrylian - 18-04-2020 Just to be sure: Did you really set the correct external path? I just tried on your test install on our own server (it's pretty standard hosting and nothing special like our own full server or something) with an external folder right above the webroot of the test (sub)domain. All domains are organized in their own folder on the server. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - davidarnoult - 18-04-2020 Yes I did. I followed instructions: I have tried with and without ending slash, folder is just right above the web root too. $conf['album_folder'] = '/home/www/www.arnoult.com/albums/'; $conf['album_folder'] = '/home/www/www.arnoult.com/albums'; Path is correct as Zenphoto finds data correctly as I have tested publication of new photo in this external folder too. Is there a way to log all PHP messages (warning, information + errors)? printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - acrylian - 18-04-2020 The trailing slash is required actually (at least it does not work without here).
Also ask you host if there is any limitation to the folders above the webroot. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - acrylian - 18-04-2020 Since all domains are in another subfolder here (originally the server was shared with non zp stuff), I moved the folder even one level up. Also works for me. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - acrylian - 18-04-2020 We also tried various extra files like video, audio plus sidecars. All works as expected here on our server. Sorry, unless you can come up with an actual error or an secure way to reproduce the failure, I fear I cannot help. If the album you tested is very large try one with just a few images to be sure it isn't something like that. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - davidarnoult - 20-04-2020 @acrylian Thanks for your time investigating. Without any clue, I will leave it as std folder. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - acrylian - 20-04-2020 Okay, it is really strange. It works locally and on our own live server but not on the live server of @fretzl. So far we have no clue why that is as there are also no errors. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - fretzl - 21-04-2020 There is a fix for this issue so please try the Support build. However, zip dowloads "from cache" are not working yet. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - fretzl - 22-04-2020 The download now also works for images "From cache" if the correct image sizes are indeed cached. Please try the Support build. printDownloadAlbumZipURL does not seem to support $conf['album_folder_class'] = 'external' - davidarnoult - 24-04-2020 Hallo @fretzl I have tested the latest support build and it is now working for me as expected, YES! Thank you for your great support, this is awesome. |