Album ZIP Download

Hello together

I don't what I'm doing wrong, but after now trying to get the Album ZIP Download function to work the whole last day, I need to approach the more experienced guys here :-)

Webhoster running Linux.
PHP-Version: 5.4.35-1~he.0
ZenPhoto 1.4.6 installed, Basic Theme

What I've already done:

I tried the ZENPhoto Internal function:
printDownloadAlbumZipURL();

Only a pop-up is triggered:
File "" not found

-No entry in the ZenPhoto internal Logfile
-Also no entry visible in the PHP Error Logfile
-Can't find any ZIP file via FTP in any folder of my ZenPhoto installation

Then I triyed itwith the Plugin "albumZipStream v0.5.0"
Function printAlbumZipStream();
I get only a white empty blank page

-ZenPhoto internal Logfile says:
{20819:Sun, 21 Dec 2014 10:11:33 GMT} Zenphoto v1.4.6[bbddab76753e1d753a54ead4eb74b41d7d46cf73]
USER ERROR: Ungültige Album-Instanz:: Gallery object existiert nicht. in xxxxxxx/schmitz_photos/zp-core/class-album.php in Zeile 1211
trigger_error called from Album->_albumCheck (class-album.php [1211])
from Album->__construct (class-album.php [1182])
from createAlbumZipStream (albumZipStream.php [64])
from albumZipStream.php [16]

-PHP Error Logfile:
[Sun Dec 21 11:11:33 2014] [error] [client xx.xx.xx.xx] PHP Fatal error: Ung\xc3\xbcltige Album-Instanz:: Gallery object existiert nicht. in /xxxxx/schmitz_photos/zp-core/class-album.php on line 1211, referer: http://schmitz.photos/ALBUMNAME/?download=ALBUMNAME&albumzip=true

-Also here I can't find any ZIP file via FTP in any folder of my ZenPhoto installation

Any help is appreciated!! Many thanks!

Comments

  • acrylian Administrator, Developer
    The printDownloadAlbumZIP() function is part of the downloadList plugin. It seems the url is encoded doubled so the link does not work correctly (the `& amp;` which should translate to `&` in the url). Then it works.

    Please try the support build (master) as there have been fixes to the plugin meanwhile (for example on Windows based servers it didn't work at all).
  • Many thanks acrylian!
    Just removed the "amp" in the URL manualy and it worked.

    May you could explain what is the "support build (master)"?
    I haven't found either the plugin nor the ZenPhoto files called like this - I'm sorry, but to what you're refering to?

    Thanks!!
    Daniel
  • Forget my stupid question, just found it...
    Will try tommorow and let you know if it works!
    Thanks!
  • To be honest I'm not really familiar with PHP, but I get it working.
    As you proposed I updated to the Master version, but without a change...
    So I played a bit around and checked the content of the variables in downloadList.php --> function printDownloadAlbumZipURL
    All the content of the variables are fine, so I came to the conclusion the issue is caused by the html_encode function.

    Without really knowing what I did, I removed this....
    `

    FROM:

    echo '' . html_encode($file) . '' . $filesize;

    TO:

    echo '' . html_encode($file) . '' . $filesize;

    `
    Now it works fine...so far :-)

    I hope I could help a bit to solve this for the next release.

  • acrylian Administrator, Developer
    I suppose the forum ate parts of your code (be sure to `escape` using backticks correctly) as both lines look the same. We will take a look at the line though.
Sign In or Register to comment.