Member
Member
tychocaine   13-08-2015, 04:33
#1

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

Administrator
Administrator
fretzl   13-08-2015, 08:15
#2

Just guessing...

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());

Member
Member
tychocaine   13-08-2015, 23:00
#3

Thanks Fretzl,

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

Administrator
Administrator
fretzl   15-08-2015, 09:16
#4

Not sure but try this:
In [i]inc-header.php[/i] find this line:
`

Administrator
Administrator
fretzl   15-08-2015, 09:30
#5

Just an observation...
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

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