Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Problem with images - "file does not exist"

Can't find out which file does not exist and why

10:39 am on Jun 11, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 20, 2008
votes: 0

The problem. My server's logfiles are full of:

[Fri Jun 10 13:58:22 2011] [error] [client ***] File does not exist: /var/www/mydomain/start/images, referer: http://www.mydomain.com/start/

There are 2 things what I don't understand:

1. I can not understand what causes this error because it doesn't show any filename which was not found. It shows just "images" folder location.

All images are located in: /var/www/mydomain/images

I have searched all my files and there are no image tags without filenames:
<img src="/images">
There are no image tags like this: <img src="/images/$some_value">

2. Why the path to the non-existing file is /var/www/mydomain/start/images instead of /var/www/mydomain/images ? This may happen if image tags looks like this <img src="images/someimage.jpg"> but my image tags start with "/" and looks like this: <img src="/images/someimage.jpg">

There are not so many images in /var/www/mydomain/images because this folder contains subfolders like /var/www/mydomain/images/smilies /var/www/mydomain/images/backgrounds etc and most of images are located there. So the error should show some subfolder.

One more strange thing. This happends not to all users. Maybe only 10% of users leave leave in my logfiles entries like this. Some users leave 2-3 lines, some users - even 36. I have checked all my files and can't find files with 36 images on the same page. No users have reported problems with non-existing images.

I also found some "File does not exist" from my IP address. So, I checked the file which caused this error but all images are in place.

I also checked css files for errors. Nothing found.

Maybe some javascripts may cause this errors, don't know.

Any ideas? Thanks.
10:09 am on June 12, 2011 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 80

if it were a folder location it would have a trailing slash:

with the referer shown i would expect the pattern to be more like:

i would also look for occurrences of:

don't forget to consider a space character messing things up:

have you tried correlating the time and IP address of the error log entry to the access log to see what requests are being made?
the request will probably show a 404 response.