Highlighted Pic Causes "Fatal error: Call to a member f

pushback

Joined: 2002-09-11
Posts: 94
Posted: Sun, 2002-10-27 17:16

Given an album that looks like this:

GALLERY
|------|-------------------|
PIC1 PIC2 ALBUM1-HIGHLIGHT=PIC4
|
|--------|--------|------|
PIC3 PIC4 PIC5 PIC6

(of course the html compressed out all the spaces but you get the idea)

Where there are six pictures, in this case PIC4 will show up twice as if it is a seventh picture because it is highlighted.

This, in itself, is no big deal, except it seems that when the ALBUM1-HIGHLIGHT=PIC4 is selected, clicking on it gives an error, whereas when PIC4 is selected, no error.

Here is the error that is generated:

Fatal error: Call to a member function on a non-object in /home/jek/www/livermore/modules/gallery/view_photo.php on line 70

In any case, joerg, thanks for taking ownership of this block. You are doing all of us a great service!

John

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Thu, 2002-10-31 16:02

Hi John,

it's me again! :grin:

I think I got that bug. Please try the <!-- BBCode Start --><A HREF="http://www.holzapfel-online.de/modules.php?op=modload&amp;name=Downloads&amp;file=index&amp;req=getit&amp;lid=9" TARGET="_blank">latest beta</A><!-- BBCode End --> and tell me if it's gone!

Joerg

 
pushback

Joined: 2002-09-11
Posts: 94
Posted: Thu, 2002-10-31 19:37

Yeah, I just moved it here to start the new thread. I took your beta a fews days back and it is now running, without error, on http://www.livermore.bz .

Thanks again, dude!

John

 
sebthi
sebthi's picture

Joined: 2003-03-11
Posts: 7
Posted: Fri, 2003-05-16 06:49

Hello, your code functions without error, but if one selectionne an album. If one selected all the ablums the hidden photo appear and there an error is when one clicks above. it is normal?

thank you

sebthi