Hi everyone,

I've coded a nice gallery script a while ago, and so far it has always worked brilliantly for me, and it's still working brilliantly.

But strangely a friend of mine has a big problem with it: on his computer, the images in two of my so far 3 sub galleries aren't displaying. There's nothing there.

You can find the gallery at http://galleries.chaosworks.org - according to him, he can only see photos in the second gallery (Holy Moses & Arnhem) - the other two galleries don't show any images, neither in the overview, nor in the index, nor on the single image site. One of his friends also can't see the pictures. Funnily enough it works fine for me, and none of my friends have complained yet either.

Does someone have an idea what the heck the problem might be? It's pretty important since I wanna use the script for a more important purpose, once I've optimized smaller things.

If necessary I can also post all kinds of codes of the script.

    There's nothing wrong with the code, because it links the images correctly, but the problem is that the images aren't displayed. If you view the source and find the IMG tag and try to copy/paste it to the your browser, it displays the image, but it doesn't when you link to it. Weird.

    Try to add an extra slash at the beginning of the URL.

    That would change...

    galleries/11/zth_ad_suomi_024.jpg

    To...

    /galleries/11/zth_ad_suomi_024.jpg

    I'm not sure if it'll work, but it's worth the try, right?

    If it doesn't work, then there's something wrong with his setup of Apache (web server).

      intenz wrote:

      There's nothing wrong with the code, because it links the images correctly, but the problem is that the images aren't displayed. If you view the source and find the IMG tag and try to copy/paste it to the your browser, it displays the image, but it doesn't when you link to it. Weird.

      Try to add an extra slash at the beginning of the URL.

      That would change...

      galleries/11/zth_ad_suomi_024.jpg

      To...

      /galleries/11/zth_ad_suomi_024.jpg

      I'm not sure if it'll work, but it's worth the try, right?

      If it doesn't work, then there's something wrong with his setup of Apache (web server).

      I tried that, but unfortunately it still didn't change anything for my friend. He still doesn't see anything except for the photos in the Holy Moses gallery :/
      (But for me it all still works just fine!)

        Then there must be something wrong with his setup. This is strange because if you copy the URL of the image in the source into your browser, it works perfectly.

        edit
        I noticed that this works perfectly in IE but not in FireFox.

          hmmpf. What could the problem possibly be, and why does it work in IE and not in FF? 🙁
          It can't really be the coding !?
          I'm totally desperate.

            I'd say, the first thing is to find out what browsers and OS they are using. Take it from there. If they use some specific browser that gives problems, have a trawl oin the web.

            I have noticed that firefox has sometimes trouble showng images, due to upper/lower case conversion of names.

              For the last time: IT DOES WORK IN FIREFOX COS THAT IS WHAT I AM USING AND I HAVE JUST BEEN INTO ALL 3 GALLERIES AND OPENED NUMEROUS PIX

              Sorry for shouting but this is the 3rd time I've said that. Browsers are not the problem.

                leatherback wrote:

                I'd say, the first thing is to find out what browsers and OS they are using. Take it from there. If they use some specific browser that gives problems, have a trawl oin the web.

                I have noticed that firefox has sometimes trouble showng images, due to upper/lower case conversion of names.

                They all use Firefox and Windows, as far as I know.

                It can't really be anything about case sensitives stuff, because the names of the photos are all selected from a database and are exactly like the names of the pics in the folders on the server..

                :/

                  Roger Ramjet wrote:

                  For the last time: IT DOES WORK IN FIREFOX COS THAT IS WHAT I AM USING AND I HAVE JUST BEEN INTO ALL 3 GALLERIES AND OPENED NUMEROUS PIX

                  Sorry for shouting but this is the 3rd time I've said that. Browsers are not the problem.

                  Hey Roger, lighten up man!

                  I am using firefox too. And I too noticed that they work fine. However, thjere are a gazillion build fo firefox out there, not everybody keeps their up-to-date. BEsides, there is opera, yadieyadieyadie, and we may all be using different OS's.

                  From the information we have, the most likely problem is a browser setting, as the product works for 99% of the people.

                  And really.. Shouting?

                    Well having twice seen my post followed by posts discussing FF as the problem one begins to wonder if one is invisible.

                    yes shouting .... typing with CAPS LOCK ON

                      Hey Man,

                      1) -> Your first poost only said that you coudl see them, not specifying what OS / Browser you were using
                      2) Your second post only said you used FF, not which version or OS

                      3) If it works for you: Hurray. Doesn't mean it works for FF 1.9.7.8 or 1.7.8.9 on windows XP Pro.

                      Cheers. As you may know: I have been around long enough to know WHAT you mean with shouting. I just though we had moved away from high school, and were trying to find a way to help the poor guy who sits with a problem in a script.
                      Usually the obvious things are missed.

                      Adastra: I agree, it is unlikely. However.. So is the problem of 2 out of three not working for a few individuals. I would be very surprised if it is your PhP coding. Unless you use sessions in some way to load the data But the galleries are all loaded using the same script, I presume.

                        Only the second one shows up for me using Firefox 2.0.0.1 on Win XP SP2 fully patched.

                        Fine in IE7

                        Something really odd going on here.

                          Clarke, what does the source code look like? Does the html for the images links look OK?

                            leatherback wrote:

                            Adastra: I agree, it is unlikely. However.. So is the problem of 2 out of three not working for a few individuals. I would be very surprised if it is your PhP coding. Unless you use sessions in some way to load the data But the galleries are all loaded using the same script, I presume.

                            Nope, it's all the simplest PHP. Pretty much everything is loaded with totally trivial SQL and while() loops...

                              The code for the images is the same in FF and IE as you would expect.

                              Not sure what's happening.

                                Post removed: wrong thread.......oops

                                  I found out what the problem is:

                                  apparently it doesn't work when the pictures have been renamed in something other than explorer, or if they have been renamed in a batch like with acdsee or irfanview.

                                  It's still the most peculiar thing, and I still don't understand that.

                                    Write a Reply...