3

Why is Drupal looking for it in the root dir in first place? The favicon is always placed inside theme at sites/all/themes/mytheme/, but it's looking for favicon.ico inside home / dir.

When browsing website it spams the log error message in the Recent log messages page.

  • Can you please apply patch for error message to remove. – vgoradiya Aug 7 '15 at 7:21
1

It's not really a Drupal bug, but a browser bug (I think Firefox might be a culprit)

The best way I found to fix it is to put:

<Location /favicon.ico>
  ErrorDocument 404 "No favicon"
</Location>

This code should work in your vhost file or should also work in the .htaccess file, see http://httpd.apache.org/docs/2.4/sections.html for more details

  • It's a feature (not a bug) of all major browsers - if the page lacks an explicit favicon set in meta, the browser will query domain/favion.ico by convention. en.wikipedia.org/wiki/Favicon#How_to_use has more details – Clive Aug 7 '15 at 9:47
  • Either way it's not a Drupal bug :) – Colin Shipton Aug 7 '15 at 9:52
  • 2
    Although adding this to .htaccess gives 500 Internal Server error. – Optimus Prime Aug 7 '15 at 10:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.