Member
Member
zenkitty   19-08-2014, 23:33
#1

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:

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!

Administrator
Administrator
acrylian   20-08-2014, 08:02
#2

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.

Member
Member
zenkitty   20-08-2014, 10:41
#3

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!

Administrator
Administrator
acrylian   20-08-2014, 10:57
#4

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.
Member
Member
zenkitty   20-08-2014, 21:50
#5

Thanks acrylian - its fixed now!

This was required at the top of index.php:

if (function_exists('printSlideShow'))

and the slideshow called as so:

Thanks so much...

Administrator
Administrator
acrylian   21-08-2014, 08:27
#6

Always welcome!

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