Fatal Error ------ getCustomImage()

Hello Folks,

I've run into a weird problem. Everything has been working fine on my zenphoto site
using the AndreyPhoto theme.

(this does not fail on any of the other themes that are shipped with zenphoto)

However whenever I add more than 3 albums to any sub-album I get an error: (this is from the View Source option in Firefox)
<b>Fatal error</b>: Call to a member function getCustomImage() on a non-object in <b>/home/xxxxx/xxxxx/xxxxx.org/pix/themes/andreyphoto/album.php</b> on line <b>82</b>

Line 82 of album.php shows:
<img src='<? echo $randomImage->getCustomImage(null, 350, 250, 350, 250, null, null); ?>' alt='<? echo $randomImage->getTitle(); ?>'>random photo: <? echo strtolower(preg_replace('/_/', ' ', $randomImage->getTitle())); ?>

Even if I re-order the albums, the fourth album shows up with the above error.
I've Refreshed the Database, Purged the Cache, Pre-cached the images and refreshed the metadata.

I've also removed the album and created a new one from scratch to no avail.
I'm using "zenphoto version 1.1.6 [1550]".

I hope someone can help. I have noticed another posting that is related to my
issue:
http://www.zenphoto.org/support/topic.php?id=1159&replies=10#post-6330

Please advise,

Mike
Sign In or Register to comment.