I am using zenphoto as plug-in and was working with an older version (1.2.4 I believe). Yesterday I updated to 1.2.6 and the following code stopped working:
This error is an indication that the album you are trying to access is not a valid album object. The code you list does not show how the album is being setup, so I cannot tell you what is wrong with it.
Ok, I call the page with: portfolio.php?album=glamour
Then at the top of the page I have: require_once("backend/zp-core/template-functions.php");
And halfway down the page (which is all HTML) I have the code as posted above. The album "glamour" does exist. This worked before. (I didn't change anything but install zenphoto again)
Hmm, I knew I was missing something. But the fact that I passed album=<albumname> worked before made me think this was enough to create an album object. So now I understand it isn't?
Well, I will believe you -since you are the developer- but strangely enough it did. And I reverted to the old situation from svn to check...and it did work like that. Oh well, that is of no consequence now...could you tell me how to create an album object in this setup please?
The controller used to be loaded from the template-functions script. But that was not correct and caused problems with using zenphoto as a plugin. The controller processes all the normal zenphoto url parameters. You will have to setup the zenphoto environment directly:
` $_zp_gallery= new Gallery(); $_zp_current_album = new Album($_zp_gallery, ; ` I suggest you review the functions guide for how the zenphoto functions are used.
Comments
Fatal error: Call to a member function isDynamic() on a non-object in \wamp\www\PhotoMatch\backend\zp-core\template-functions.php on line 1760
Then at the top of the page I have: require_once("backend/zp-core/template-functions.php");
And halfway down the page (which is all HTML) I have the code as posted above.
The album "glamour" does exist.
This worked before. (I didn't change anything but install zenphoto again)
Oh well, that is of no consequence now...could you tell me how to create an album object in this setup please?
`
$_zp_gallery= new Gallery();
$_zp_current_album = new Album($_zp_gallery, ;
`
I suggest you review the functions guide for how the zenphoto functions are used.