Member
Member
Yvar   22-09-2009, 08:36
#1

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:

`

[code]

Administrator
Administrator
acrylian   22-09-2009, 08:44
#2

These should all work. Please look at your server's error log.

Member
Member
Yvar   22-09-2009, 09:25
#3

I did a new install on my development server so I could test better. With Xdebug I get the error:

Fatal error: Call to a member function isDynamic() on a non-object in D:\wamp\www\PhotoMatch\backend\zp-core\template-functions.php on line 1760

Member
Member
sbillard   22-09-2009, 15:35
#4

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.

Member
Member
Yvar   22-09-2009, 16:26
#5

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)

Administrator
Administrator
acrylian   22-09-2009, 16:35
#6

How do you setup the album object?

Member
Member
Yvar   22-09-2009, 16:50
#7

Hmm, I knew I was missing something. But the fact that I passed album= worked before made me think this was enough to create an album object. So now I understand it isn't?

Administrator
Administrator
acrylian   22-09-2009, 16:57
#8

I doubt that this ever worked on an none Zenphoto page.

Member
Member
Yvar   22-09-2009, 17:34
#9

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?

Member
Member
sbillard   22-09-2009, 19:48
#10

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.