favicon.ico 404 error

favicon.ico 404 error

by Philippe Eveleigh -
Number of replies: 0

Minor problem, application attempting to retrieve favicon.ico in application root directory, instead of the theme directory.


Server http error log:
[Sun Nov 23 15:37:13 2008] [error] [client 192.168.1.10] File does not exist: /var/www/virtual/izone.services12/favicon.ico
[Sun Nov 23 15:37:17 2008] [error] [client 192.168.1.10] File does not exist: /var/www/virtual/izone.services12/favicon.ico
...
[Sun Nov 23 16:07:42 2008] [error] [client 192.168.1.10] File does not exist: /var/www/virtual/izone.services12/favicon.ico

server http access log:
192.168.1.10 - - [23/Nov/2008:15:37:13 -0500] "GET /favicon.ico HTTP/1.1" 404 275 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4"
...
192.168.1.10 - - [23/Nov/2008:15:37:17 -0500] "GET /favicon.ico HTTP/1.1" 404 275 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4"
...
192.168.1.10 - - [23/Nov/2008:16:07:42 -0500] "GET /favicon.ico HTTP/1.1" 404 275 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"

Moodle Log
iZone  Sun November 23 2008, 03:38 PM 99.246.11.169 Joe Smith2     course view Cognoquest iZone
iZone  Sun November 23 2008, 03:37 PM 99.246.11.169 Joe Smith2     course view Cognoquest iZone
iZone  Sun November 23 2008, 03:37 PM 99.246.11.169 Joe Smith2     message write Joe Smith
iZone  Sun November 23 2008, 03:37 PM 99.246.11.169 Joe Smith2     message write Joe Smith
Math7  Sun November 23 2008, 03:37 PM 99.246.11.169 Joe Smith2     user view Joe Smith
Math7  Sun November 23 2008, 03:36 PM 99.246.11.169 Joe Smith2     course view Madame Coates' Math Zone

...

iZone  Sun November 23 2008, 04:08 PM 99.246.173.24 Joe Smith   user logout 173
iZone  Sun November 23 2008, 04:07 PM 99.246.173.24 Joe Smith   blog view view blog entry
iZone  Sun November 23 2008, 04:07 PM 99.246.173.24 Joe Smith   blog add wow....
Math7  Sun November 23 2008, 04:05 PM 99.246.173.24 Joe Smith   blog view view blog entry


Moodle version 1.8.5 and 1.9.3+ running in a Centos linux environment Apache/PHP 4.3.11, I have scanned my http logs and I have hundred's of these errors, all coming from different versions of Firefox/Mozilla Browsers, not seeing this problem with other browsers.

Strange behavior scanned the following code in a few source browser pages, the reference is properly filled, all seem ok.
[root@services12 standard]# grep -r favicon.ico *
header.html:    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
[root@services12 standard]#

I believe based on the above logs 'favicon.ico' is being fetch from the root directory when a page is about to be written but can not identify the exact page, only from Mozilla Browser.

Regards

Average of ratings: -