getPhotoIndex always returns -1

Arne

Joined: 2002-08-31
Posts: 4
Posted: Sat, 2002-08-31 18:56

I've set up gallery 1.3.1 just fine but one problem remains. I cannot view any photos I uploaded. I can move them around, delete them and everything, but clicking on a photo does nothing! Just a refresh. I figured out that in view_photo.php the getPhotoIndex function returns -1 every time. But why? Any ideas where to look? Uploading and managing of photos and albums work fine.
I'm using Apache 1.3.26 and PHP 4.2.x.

Thanks,

Arne

PS: Web-forums suck. Mailing-lists are better. :smile:

 
Arne

Joined: 2002-08-31
Posts: 4
Posted: Sat, 2002-08-31 19:12

I now figured out that $id contains complete garbage. Where does this variable get its value from, anyway?

 
Arne

Joined: 2002-08-31
Posts: 4
Posted: Sat, 2002-08-31 19:18

Ok, I now also figured out how view_photo.php is being called. But I still do not get why $id contains garbage. This does not make any sense...

 
Arne

Joined: 2002-08-31
Posts: 4
Posted: Sat, 2002-08-31 20:22

Solved! Just put a

$id=$HTTP_GET_VARS['id'];

in view_photo.php and everything is set for go...

Whew...

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-03 04:43

That's odd. My guess is that you have another application on your website that is setting a cookie for the "id" variable. Is that the case? What's the URL to your site?