Member
Member
flu   2014-06-05, 14:39
#1
Hi,
I'm trying to use the function printDownloadAlbumZipURL from the Downloadlist plugin which I've enabled, so I wrote this in my image.php theme :
<?php printDownloadAlbumZipURL('Download album','','false'); ?>

but all I get is this message :
Fatal error: Call to a member function isDynamic() on a non-object in /home/xxx/public_html/zp-core/zp-extensions/downloadList.php on line 556

Do you know how to make it work ?

I use Zenphoto 1.4.6
theme : Zpbase
PHP : 5.3.28
MySQL : 5.1.67

Thanks.
Administrator
Administrator
fretzl   2014-06-05, 16:11
#2
You forgot to set the `$albumobj` parameter.
This should work:
`<?php printDownloadAlbumZipURL('Download album', $_zp_current_album); ?>`
Administrator
Administrator
acrylian   2014-06-05, 16:17
#3
Basically the 2nd parameter needs to be an album object like fretzl said or NULL to use the current album directly. You set it to `''` which is in fact an invalid album :-)
Member
Member
flu   2014-06-05, 19:01
#4
Thank you guys, Ididn't manage to find this function in the documentation.

$_zp_current_album did the trick.
Administrator
Administrator
acrylian   2014-06-05, 19:09
#5
I didn't get to update the documentation yet, will soon follow. You can always look into the plugin file directly. The documentation just uses the documentation within, too.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.