non-existing referenced image causing 404 errors

thermoman

Joined: 2005-07-12
Posts: 6
Posted: Tue, 2005-07-12 19:26

hi. in gallery 1.5 is a 'bug'. in a html page an non-existing image is referenced causing 404 errors:

Quote:
[09/Jul/2005:22:55:03 +0200] "GET /gallery/css/images/tab_bottom.gif HTTP/1.1" 404 298 "http://pics.thermoman.de/gallery/add_photos.php?set_albumName=waffenburg_zingst&type=popup" "Opera/8.01 (Windows NT 5.0; U; de)"

greetings,
thermoman.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2005-07-12 19:35

That looks like an Opera bug, actually. The image exists... it's just looking for it in the wrong place.

css/base.css.default:   background: url(images/tab_bottom.gif) repeat-x bottom;
css/screen.css.default:    background: url(images/tab_bottom.gif) repeat-x bottom;

The image exists in (gallery/)images/ from where it should be retrieved. Opera is using the location of the css file to base the url from, which is incorrect. It should use the location of the page.

 
thermoman

Joined: 2005-07-12
Posts: 6
Posted: Fri, 2005-07-15 04:43

Seems to be standard conform to use the style sheet as base for relative urls:

http://my.opera.com/forums/showthread.php?threadid=96730

thermoman

 
fkelly

Joined: 2005-12-05
Posts: 37
Posted: Wed, 2006-02-01 16:48

I know this thread is kind of dead but I'm experiencing (or was) the same problem with Gallery 1.5.1 and Firefox 1.5. Just for kicks I modified the base.css.default and screen.css.default to have:

background: url(../images/tab_bottom.gif)

but that had no effect whatsoever. Gallery still looks for the image in css/images which doesn't exist. I worked around the problem by creating such a directory and copying tab_bottom.gif to it and now the error goes away. Still it is something the Gallery folks should rectify.