homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Problem with images - "file does not exist"
Can't find out which file does not exist and why

5+ Year Member

Msg#: 4324929 posted 10:39 am on Jun 11, 2011 (gmt 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.



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

Msg#: 4324929 posted 10:09 am on Jun 12, 2011 (gmt 0)

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:
<img src="images">

i would also look for occurrences of:

don't forget to consider a space character messing things up:
<img src="images /backgrounds/someimage.jpg">

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved