Call to a member function on a non-object in /view_photo.php

wellie
wellie's picture

Joined: 2003-06-04
Posts: 2
Posted: Sat, 2003-08-02 07:47

Hello

I've searched the forums for a solution to this error:
Fatal error: Call to a member function on a non-object in ../view_photo.php on line 80
which occurs whenever a thumbnail loaded into the random block is clicked, when that thumbnail is a album highlight for a nested gallery rather than an actual photo from within a gallery.

I'm running PHPNuke 6.5 with the latest version of the random block available at NukedGallery.Net although from the forums I can see people running the standalone random block have encountered this problem as well.

The solution would seem to be to exclude album highlights from the blockrandom cache - but I'm sad to say I don't have the PHP nouse to even begin to know how to do this - I wish I did!

Would someone who wants a bit of a challenge take this on (or if they know of an existing solution post it here) - it's a major hassle if you have a Gallery with a lot of nested albums.

My PHP is getting better, but still well in noob territory I'm, afraid...

 
Laephis

Joined: 2003-06-18
Posts: 6
Posted: Fri, 2003-09-19 16:13

I've read through the forums and can't find a solution to this. Has anyone found one yet? The error I'm getting is:
Fatal error: Call to a member function on a non-object in ...view_photo.php on line 93

But the behavior is the same: a thumbnail of a nested album is being included in the random pictures and is not able to be displayed when a user clicks on it. Any help would be greatly appreciated! (Running Gallery 1.4p1 now)