![]() |
|
PrintAlbumZip error: works only for admins - 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: PrintAlbumZip error: works only for admins (/thread-5244.html) |
PrintAlbumZip error: works only for admins - bic - 2009-05-29 If a normal user tryes to download a zip archive of an album he gets this error: Zenphoto version 1.2.5_RC1 [3982] Everything works fine for admins with edit rights on the album. PrintAlbumZip error: works only for admins - sbillard - 2009-05-29 I am not able to reproduce this error. Could you please provide a link to your site for testing? PrintAlbumZip error: works only for admins - bic - 2009-05-29 Ok, I hope nobody else will see it now, I'm still in a testing stage. http://www.antonioranesi.it/temp/ The only real album is Test, Portfolio is a dynamic album PrintAlbumZip error: works only for admins - acrylian - 2009-05-29 Indeed, I can reproduce that I get this error if not logged in. We will try to solve that. PrintAlbumZip error: works only for admins - sbillard - 2009-05-29 Ok, found the problem. I could not reproduce it because another change I was working on accidentally fixed it! Fix will be in the nightly build tonight. PrintAlbumZip error: works only for admins - bic - 2009-05-29 Yes, updated album-zip.php from SVN and it works now. Thanks! PrintAlbumZip error: works only for admins - sbillard - 2009-05-29 Not shame on you. That is actually the way I accidentally fixed it in my developement source. But unfortunately, there was more to that change than that one line, so it has to wait for the 1.2.5 development stream. PrintAlbumZip error: works only for admins - bic - 2009-06-03 Still problems with PrintAlbumZip. If the album is in the roor folder (albums) then the zip file is created but displayed as plain text in browser, after this warnings: ` Notice: Undefined variable: Warning: Cannot modify header information - headers already sent by Warning: Cannot modify header information - headers already sent by Warning: Cannot modify header information - headers already sent by ` Warning: opendir(/home/web/www.antonioranesi.it/www/temp/albums/Diocesi_Civitavecchia/S.Agostino_Civitavecchia/Diocesi_Civitavecchia3133OT03/) Warning: chdir() [function.chdir]: No such file or directory (errno 2) Warning: opendir(/home/web/www.antonioranesi.it/www/temp/albums/Diocesi_Civitavecchia/S.Agostino_Civitavecchia/Diocesi_Civitavecchia3133OT01/) Warning: Cannot modify header information - headers already sent by Warning: Cannot modify header information - headers already sent by Warning: Cannot modify header information - headers already sent by Diocesi_Civitavecchia/S.Agostino_Civitavecchia/3133OT01/ not edit: PrintAlbumZip error: works only for admins - bic - 2009-06-03 I found a solution, please help me to understand if this can lead to other problems. PrintAlbumZip error: works only for admins - sbillard - 2009-06-03 $zip should have been the 4th parameter to PrintAlbumZip error: works only for admins - bic - 2009-06-03 I get a not needed offset before the subalbum name, when the album from wich I call the printalbumzip function is not in the root folder and is not the last folder in the albums tree.
becames
printing zip from With my code the problem is fixed but I suppose that the real error is somewhere before... |