Slideshow no longer working after upgrade

Hi there,

I recently upgraded my zenphoto from an older version (1.4.3) to the latest version. Now the slideshow on the homepage is no longer working. There's no errors, the slideshow simply isn't displaying.

Its being called directly on index.php using:
<?php $albumobj = new Album($_zp_gallery, "slideshow.alb"); printSlideShow(false,false,$albumobj, "", 575, 400); ?>

I have enabled it for index.php in the slideshow plugin settings. I'm using the default theme.

Does anyone have any ideas about what the issue is? Obviously, something has changed with the slideshow from the old version of zenphoto I was using to the new, but I can't figure out what.

Any help would be much appreciated. Thanks!

Comments

  • acrylian Administrator, Developer
    Besides that there are now two slideshow plugins both are setup to work the same and as before.

    Triy to use `newAlbum` instead of `new Album` to setup the album object. That would be the only obvious change. If it is not this please review your error logs.
  • Thanks for the reply acrylian. Using newAlbum didn't help.

    This was in the error logs:

    PHP Fatal error: Call to a member function isDynamic() on a non-object in /home/xxxx/public_html/zenphoto/zp-core/template-functions.php on line 3293

    PHP Fatal error: Call to undefined function printSlideShowJS() in /home/xxxx/public_html/zenphoto/themes/default/index.php on line 16

    The album the slideshow is calling is a dynamic one. Has something changed with dynamic albums since version 1.4.3?

    I appreciate your help! :)
  • acrylian Administrator, Developer
    Ok, now we are getting nearer.
    1. My fault being too used to it: It must be just `newAlbum("slideshow.alb");`
    2. You didn't update the default theme with your upgrade. The function `printSlideShowJS` does not exist anymore and needs to be removed. The JS is loaded via a filter so make sure your theme has all required default calls. Best see the original default theme or review the theming tutorial.
  • Thanks acrylian - its fixed now! :)

    This was required at the top of index.php:

    if (function_exists('printSlideShow'))

    and the slideshow called as so:

    <?php $albumobj = newAlbum("slideshow.alb"); printSlideShow(false,false,$albumobj, "", 575, 400); ?>

    Thanks so much...
  • acrylian Administrator, Developer
    Always welcome!
Sign In or Register to comment.