Hi There,
I have just updated a very old (1.4.2.3) zenPhoto install to the current (1.4.9) version... I broke a lot of things but after a bit of forum reading I was able to correct most of my issues (mostly xxxLinkURL functions being deprecated and replaced with xxxURL functions).
The last remaining issue I'm trying to solve is that on my main front page I used to have a slideshow... I was using the fantastic zpMasonry theme (with some minor layout tweaks) but now the slideshow has been replaced with an error message in the code telling me that getURL (called from index.php) has been deprecated.
Can anyone suggest an easy fix to resolve this or point me towards some documentation I could review? I took a look at the most recent version of the index.php for the zpMasonry theme in the unsupported archive but it's completely different to the old version I'm using and I have no idea where to start with it...
Thanks in advance
Comments
In index.php see if you have a line like this:
`$randomImageURL = html_encode(getURL($randomImage));`
If so, replace it with this:
`$randomImageURL = html_encode($randomImage->getLink());`
I did have that line in my index.php and I have replaced it... the error is now gone but the slideshow is still not working so I guess it's an unrelated issue.
My gallery is located here - http://goo.gl/Ed0hpj
If anyone can see anything obvious I would really appreciate any pointers.
Thanks
In inc-header.php find this line:
`/zp-extensions/colorbox/jquery.colorbox-min.js" type="text/javascript">`
and replace it with this line:
`/zp-extensions/colorbox_js/jquery.colorbox-min.js" type="text/javascript">`
However, best would be to get the last updated version of the theme and go from there. You would have to apply your "minor layout tweaks" again of course.
You can download it here:
https://github.com/zenphoto/Unsupported
Unfortunately you'll have to download the entire repository first and then get the theme.
Your site is pretty slow because the images are seriously large.
Most of them are about 23MB and some even 75MB ("Stitched Panorama").
The latter can't even be processed because the server runs out of memory.
You may want to consider to use smaller images.
Some reading:
http://www.zenphoto.org/news/problems-with-albums-and-images