plug-in no longer working after update to 1.2.6.

Comments

  • acrylian Administrator, Developer
    These should all work. Please look at your server's error log.
  • 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
  • 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)
  • acrylian Administrator, Developer
    How do you setup the album object?
  • 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?
  • acrylian Administrator, Developer
    I doubt that this ever worked on an none Zenphoto page.
  • 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.
Sign In or Register to comment.