I just finished installing Gallery and uploading some test photos. When I click on the thumbnail, the page just reloads itself. I've seen other people's galleries here and I know that I'm supposed to go to the page for the photo. But in mine it just reloads the page of thumbnails. I can play the slideshows so I know that larger files are there. I checked through the configuration line by line and don't see anything that could disable this basic feature.
Thank-you.
More info- When I hover over the thumbnail, I can see the path and it looks correct ->
/gallery/album01/picturename
But clicking the thumbnail OR manually loading the URL into the browser just reloads this page ->
/gallery/album01/
Can anyone tell me what needs to be changed?? Thank-you.
----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.4.4-pl5
Apache version:
PHP version (don't just say PHP 4, please): 4.3.4
Graphics Toolkit: NetPBM
Operating system: Linux vulcan.host4u.net 2.2.26-rpd #5 SMP Wed Apr 28 17:36:44 CDT 2004 i686
Web browser/version (if applicable): Windows IE 6 and Mac IE 5
Posts: 13451
URL?
Posts: 60
www.film2disk.com/gallery
Posts: 60
Wait! There's more now-
I continued to play around with other features. Even though I gave all registered users the ability to delete their own photos, I still get an error when trying to delete one of my photos-
So what the heck is going on here??
I uploaded everything in binary mode.
I uploaded and decompressed the Gallery tar file.
I added blank .htaccess and config.php files.
I changed permissions as directed.
I uploaded all binaries for NetPBM.
I set all permissions for NetPBM.
I get no errors in the config.
And finally, I haven't edited or uploaded anything else.
I guess my point is that I didn't change anything else outside the parameters of the setup wizard. I didn't think I had to.
Posts: 60
Another update-
I installed a fresh copy of Gallery into a different location to just see if something was corrupted.
No good. It's setup and working but the two problems remain.
1. Clicking on thumbnail does nothing but reload thumbnail page.
2. Can't delete photo without error message as described in previous posting above.
Thank-you for any help.
Posts: 60
I've had it!!! At least until the experts can look at this.
In my duplicate location, I deleted Gallery 1.4.4 and installed bleeding edge version of Gallery 1.5 for the hell of it. I must say I'm getting very quick at this. Version 1.5 is operational but it too has the same two problems at posted above.
I patiently wait for assistance now.
Thank-you.
Posts: 13451
Your installs stil point to the same albums dir, right? Does it happen in every album, or just in one?
Posts: 60
No- 1.4.4pl5 points to the albums directory I created with 1.4.4pl5. I created a new and different albums directory in a different location when I installed 1.5
This happens on all pictures in all albums.
When I installed the newer one (1.5) in a different place, I created a new albums directory and uploaded new pictures. It happens there too on all pictures in all albums.
Thank-you.
Posts: 13451
I just had a look at http://www.film2disk.com/gallery and I can't see the problem?
Posts: 60
?????
1. When you click on a thumbnail, isn't a larger version supposed to load on it's own page? My thumbnail page just reloads itself. I'm seeing this on BOTH a Windows machine and a Mac.
2. Please register yourself and upload some pictures... you won't be able to delete them. This error seems to be pretty common here but I haven't seen any solutions. I'm seeing this too on BOTH a Windows machine and a Mac.
Thank-you.
Posts: 13451
http://www.film2disk.com/gallery/album03/IMG_4708 - Seems perfectly fine to me?
I also added another photo to the same album, and deleted it without any problems at all.
Posts: 60
Many other people here are seeing this error-
So what causes this to happen on every single computer I've tried? Seems strange to happen on multiple systems running on multiple machines.
What about the other people that see this error?? What causes it for them.
I did find one other person on here that has BOTH problems I'm seeing and a couple dozen with the fatal error when trying to delete.
Since the error is generated from within Gallery, wouldn't you have some idea of what's causing it?? whether it's something with all my computers or something wrong with gallery?
Thank-you.
Posts: 60
Seeing it here-
IE v5.5 Windows 98SE
IE v6.0 Windows 98SE (different machine)
IE v5.17 Mac OS 9.2.2
Also see this problem on other Windows machines when directing friends to look at pages. If it is an IE problem, I can't expect my audience to switch browsers.
Like it or not, unfortunately most people still use IE so I hope that Gallery would be pretty compatible with it.
Posts: 60
Well what do you know...
I downloaded and installed FireFox for Windows and both problems are gone.
This is quite disturbing. Why won't this work in Explorer??
I'll rephrase, what's causing Gallery to generate a fatal error when the user is on Internet Explorer?
I'd expect the browsers to behave a little different from each other but these two problems are major. And like I said before, since most of my audience as well as 75% of the www is using Internet Explorer.
Any solutions or workarounds (besides asking all my viewers to download other browsers) ??
Thank-you.
Further thoughts:
I can view other people's websites' Galleries and they do work in Explorer without errors.
So what could be so unique about the combination of my Windows AND Mac computers running Explorer and MY website's installation of Gallery???
I hope we can get to the bottom of this; it seems that it would help a ton of other people here.
Thanks again.
Posts: 13451
I used IE when I did the uploading and deleting on your site. I have no idea why yours doesn't work. Any javascript blockers/firewalls or something installed on those machines?
Posts: 60
I'm on DSL with a NetGear 614P Firewall Router. Pretty standard setup.
Is there anything special I should look at in the Firewall Router?
I do web developement, so I have nothing that would prohibit any Javascript or block anything else. In fact, the IE v6 on the Win98SE machine is a fresh recent install of both Win98 and IE.
What's really wierd is that I can go to other people's Gallery installations with IE and I don't see the thumbnail problem... Only on mine. So it's some strange combination of things I imagine.
Posts: 13451
sparky672, that is very strange. When I was referring to firwalls, i was thinking software firewalls, not hardware.
I really have no idea what might be wrong, as it works fine from here.
Posts: 60
Can you elaborate on how that Fatal Error message is generated?
Many other people here have this problem so it seems that it would be great to find out the source cause.
Posts: 60
Maybe if I knew what causes this error to pop-up, I could do more troubleshooting.
I'm not saying there's a problem with Gallery but come on now, the error message is generated by Gallery so it's having a problem with something. Just because some people with IE don't see it or other browsers don't see it, doesn't mean it's not a problem. What's the trigger?? If something was wrong with the albums then all would have a problem, so obviously it's something that IE is doing differently that only effects some computers. Why can't Gallery cope with this unknown trigger? In my case it effects both a Windows and a Mac computer.
I'm finding so many people out there on Google even with the same problem, yet no-one seems to have a solution.
I've attached a GIF of the pop-up error.
Let's solve this.
Thank-you.
Posts: 60
SERVER LOGS
These are the server log entries from both browsers. They are the two lines right after you click on a thumbnail. In Firefox, the larger image loads on the second line. However, in IE, then thumbnail page reloads on the second line.
IE6 Win98
FireFox Win98
This post was only for thumbnail problem.
Posts: 60
SERVER LOGS part II
These are the logs from when I get the Fatal Error when trying to delete. In FireFox there's one line for this action when the popup window comes. But in IE, two more lines with come up for the calling of two style sheets. This tells me nothing other than the two browsers are behaving different for some reason.
NOTE: IE for Mac is behaving identically to IE for Windows.
IE Win 98
FireFox Win 98
I hope someone can see something I'm missing here.
Thank-you.
Posts: 60
Also seeing this on another completely different machine-
IE v 5.5 Win98SE
Posts: 60
Also reinstalled PHP4 on my server.
Still same issues
Posts: 13451
sparky672, I have no clue. Sorry. I'll see if any of the developers have any more insight that I do. What I don't get is how the error can possibly be browser related at all, since the error message is generated serverside.
Posts: 60
In the beginning and now I am agreeing with you. I went next door to my neighbor's house and on his IE explorer in Win98 it was working fine.
But wait, if it's generated on the server side, then why only here when I'm using IE on both windows and mac but not in FireFox?
I feel like this is going in circles.
.... I am at my wits end.
Can this somehow be related to my firewall router? Yet Firefox works behind it.
?????????!
Posts: 60
Also switched to use long URLs- no change.
*************
Also tried a slightly different path in config-
changed
to
and also to
All three are recognized as valid working paths and all three offer no solution to the problem.
Posts: 13451
sparky672, I seriously doubt that changing paths will help at all.
Posts: 60
you're right about that. it made no difference... but I'm grasping at straws.
Posts: 60
I also disconnected from my LAN and Dialed in via modem in order to remove the firewall router from the mix.
Same results. no good.
Posts: 13451
Patience grasshopper. I'll have one of the devs pop in.
Posts: 60
Thank-you for all your help. Let me know if you or the developers require more information... logs, etc.
Posts: 60
anything from the developers yet? Thank-you.
Posts: 2322
It's because the same error message can occur for several different issues, generally all of which are known and have fixes.
This probably isn't the answer you want to hear, sparky672, but if it is occuring in one browser and not in others, then it's probably a browser issue. The error message you're seeing indicates that the index for the image is being set incorrectly, and that index is almost always retrieved from the browser when it's sent in the URL or by a form POST.
Make sure that you disable any browser addins that you have running and try it again. Also try other standard browser troubleshooting - clear your cache and cookies, etc.
Posts: 60
However, when that error occurs with "deleting" the picture from the gallery, no-one here has a posted solution. I found two or three open threads dealing with this exact same issue and it led to using FireFox instead. No-one figured out what was specifically causing the problem.
Logical First Step:
Brower Troubleshooting->
I've tried it with no success in Explorer v5.5, Explorer v6.0 both in Windows 98 and in Explorer 5.17 in Mac. That's three different computers using a standard installation with NO add-ins. Something unique to both Mac and Windows Explorer.
But wait-
Other people I know, have no issues using my site with Explorer.
This indicates that it must be an issue with Explorer on all three machines here but only here. So I bypassed my firewall router and tried a dialup conection. Same result.
But wait!
How can it not work on MY web site with Explorer but I can visit OTHER people's installation of Gallery with MY Explorer and then it works on theirs??
This makes me think that it's a combination of two different problems.
Now you say it's an issue when the browser sends the URL in the form of "POST"??? Look at the server logs I posted here. Both the successes and failures are transmitting the URL in the form of "GET".
Can this be the issue??? I see NO "POST" anywhere in the server logs for these issues.
Thank-you.
Posts: 60
Without exception both the delete error message and the thumbnail problem go hand in hand. Something with the URL getting changed I imagine.
Quoting h0bbel:
Dumped all browser cache and am using standard installs->
NOT working:
Working:
So out of 7 browser all installed on various machines and systems, it's not working on 70% of them.
And out of the 5 versions of Internet Explorer, it's not working on 80% of those.
And other people's web site gallerys work fine here in all the browsers.
So I'm willing to keep working on this... what else can I try?
Posts: 60
anyone? please?
Posts: 2322
sparky672, I'm keeping it in mind and doing some investigation, but the only thing that makes any sense is that it's a browser issue.
I don't know what, or how, but since it only occurs with IE, only for you, and only on your install, what else can it be?
Posts: 60
Only for me as far as I know. But there are these posts here all without resolution-
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=9617
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=9762
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=19772
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=22577
And in here the second poster is getting both problems the same as mine-
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=12333
But it also happened is Safari in Mac OS X.2.8. Funny, the only version of IE that it's working on is the one for Mac OS X !! I'd expect the opposite.
My install... more precisely, my install(s)- SEVEN completely DIFFERENT and fresh STANDARD installs and versions of IE and others on FIVE completely separate systems. No extras, No add-ins, etc.
If I were you, I may be saying the same thing but I would also expect the program to work in most versions and standard installs of IE, not the opposite as I'm seeing here.
I don't know either.
Maybe there's a problem with my installation? Maybe there's a problem on my server? Maybe it's a PHP problem? Maybe it's Gallery? Maybe 5 out of 7 different browser versions on 5 different systems all have the same problem? I don't know but I'd like to find out.
Maybe you could elaborate a little more on what happens between the browser, Gallery, and the server as I click delete or as I click a thumbnail. I'm seeing the server logging different things when I use FireFox which works versus a non-working version of IE.
Gallery is the one spitting out the delete error after all. What is the browser doing to cause this error? With this info, I can do more investigating and troubleshooting on my end.
I do appreciate your efforts and I hope you can help me figure this one out. A final resolution to this may prove informative and helpful to many others with seemingly unrelated problems.
Thank-you.
Posts: 60
This part comes out of 'delete_photo.php'
This part comes from 'Album.php'
But where does this part come from? PHP, I assume?
I did an auto-reinstall of PHP4 on my server a few days ago. Didn't help obviously. I don't know enough about PHP to dig into this as deeply as may be needed.
Posts: 60
Given the situation in that it seems to work for others and just not for me, I opened the gallery to other users to come and try it out.
I am getting reports now from more than half of the people I've contacted that they too are seeing the same problems with my gallery.
I'm convinced now that there is something wrong with my installation of gallery that shows up in nearly 3/4 of the various browsers that it's tried on.
I would really like to get some help solving this as I can't do it alone.
Thank-you for looking at this again.
Posts: 2
Hi there, I have some information that _might_ be relevant, so I'll just post it here.
My situation is slightly different but I'm running into the same error message so I think that maybe combining information might help here.
My situation:
Apache 1.3.33
PHP 4.3.10
Gallery 1.4.4.6
Etomite 0.6 (CMS)
Tried with Firefox and Opera.
I'm trying to embed Gallery into Etomite (I know, not supported) and I'm running into the problem. Embedded Gallery displays my albums fine, I can enter an album and it will display my thumbnails fine, but when I click on a thumbnail it will come up with the following error message:
Error: Requested index [0] out of bounds [5]
To be sure, this somehow has to do with the embedding, because I have no problems when I access the page directly. Read on though, because what comes next might still be useful.
In my case, the error message is generated by the following block of code in view_photo.php:
if (isset($id)) {
$index = $gallery->album->getPhotoIndex($id);
if ($index == -1) {
// That photo no longer exists.
header("Location: " . makeAlbumHeaderUrl($gallery->session->albumName));
return;
}
} else {
$id = $gallery->album->getPhotoId($index);
}
The difference between accessing the gallery directly or though embedding is that $id is empty if I access through the embedding.
This _I think_ leads to init.php, which, as far as I can tell, reads $id (among others) in the following piece of code that extracts $_REQUEST (which is GET, POST and COOKIES):
if (is_array($_REQUEST)) {
extract($_REQUEST, EXTR_SKIP);
And true enough, there is a difference here. I added the following line to init.php right before the array is extracted:
echo print_r(array_values($_REQUEST));
Here are the results:
Working:
Array ( [0] => NAI [1] => Aydan [2] => 73f005ea83231c256e40d3112f42802d [3] => -128135921 [4] => YToyOntzOjI6IklEIjtzOjMyOiIzOWVkYmY1OGU5YTA2N2EzZGE3YTAxZGIyZmY4YmY4OSI7czoyOiJhbSI7aToxO30= )
Non-working:
Array ( [0] => NAI [1] => Aydan )
So, it looks like for some reason not the same stuff is sent to the server. This is where I'm stuck. I really hope that there's anything in here that could be of help! Meanwhile, I'll continue fiddling
Erik.
Posts: 60
Erik-
Thank-you. I'm glad that this issue hasn't been forgotten. So can I assume that you are seeing different results in different browsers? Or just different results in your embeded installation versus the standard Gallery?
I don't want this topic to get too sidetracked but it does seem that we are looking at similar areas of code. Maybe this could be some help to someone smarter than I.
I've found another person that can't access my gallery without the same problems I see.
He promises to install it on his server too and then assist me with troubleshooting.
I will, of course, post anything of relevance that we find. Meanwhile I hope that others will have something new to contribute based on your recent posting.
Posts: 2
Sparky,
I've tried two browsers (Opera and Firefox) and I'm seeing the same result. The difference is between embedded and non-embedded. I was thinking though, that maybe the cookie settings had to do with it (considering the different contents of $_REQUEST and the fact that especially the cookie bits had fallen off and that stopped it from working).
That might be something you could check. I was going to do this as well, but haven't yet and have currently stumbled upon a workaround: I re-ran the config wizard to make some changes to the lay-out, to take my mind off the problem. When I'd run the wizard I realized that the problem had gone away. I ran a diff on the old and new config.php and I found that rewrite had been switched on:
$gallery->app->feature["rewrite"] = 1;
This setting was off before and makes a difference. I'm afraid that the first time I ran the Gallery config wizard I hadn't reloaded the Apache config which caused the wizard to switch rewrite off. Now, however, it had switched it on.
So, I don't really now what the problem was but this is a good solution. My apologies for posting in this thread, because I do think I'm sidetracking it.
Erik.
Posts: 60
I did play around with the rewrite option. There is also a line in the .htaccess file that goes with this I believe.
The only difference that setting made was in the URL- long URL vs. short URL... however, my two problems were there with both.
cookies?
A good experiment would be to check the cookie's contents in a browser that works vs. the same cookie's contents in a browser that doesn't work.
Will post results later.
Thank-you.
Posts: 1
I haven't had time to research the why but I believe I know the what. Running Gallery under PHPNuke. Suddenly started having problems viewing pics in Gallery (Error: Requested index [0] out of bounds [5]
) and displaying reviews in my Reviews module. Started troubleshooting Reviews module and noticed that PHP was not seeing the $id variable in the URL. So...as an experiment, I changed it to $rid globally and voila! now I can see my reviews. On a hunch, I did the same in Gallery and now I can see my pics.
As I said...don't know WHY it started happening. I can only assume that something in the PHP environment changed...but I'll be damned if I know what.
Posts: 60
How can this be applied to what I have seen? I can get it to work in a few browsers but NOT most of them.
I'm not using PHPNuke, just stand-alone Gallery.
Posts: 18
I'm looking for solution to this problem also. I'm running most recent version of gallery (not the RC) embedded in PostNuke .750 with the most recent security patch. I thought I read elsewhere that the problem may be related to security code in Gallery related to the Santy virus. I didn't see the problem until applying the security patch to PN, but that doesn't necessarily mean it didn't exist before then.
Posts: 18
sparky are you using the random block at all?
Posts: 60
In my setup, I only have various options ranging from 24 hours to 30 minutes for "Random Block Cache Time." However, I don't see the logical relationship of random block to these problems, but who knows? I thought random block dealt with calling the images randomly during slideshows. I'm not playing around with that at all.
I just get the error when trying to delete an image and also nothing happens when I click on a thumbnail.
Also, I very much appreciate the suggestions and it seems I really need people such as yourself to solve this problem. But I'm using Gallery as a stand-alone product so I hope that recent postings don't confuse that point.
I also heard about this error somehow being related to security code dealing with the Santy virus, but haven't had much success tracking down what I can remove. Most all discussions about the Santy virus code were related to the embedded Gallery installations.
Thank-you.
Posts: 60
BUMP
anything new?
Posts: 60
I installed the latest version of Gallery fresh from scratch in a new directory on my server. All of the problems described in this thread are still there.
I also get this error on the setup screen:
Could this be causing the sort of problems described in this thread?
Thank-you.