Topic on Project:Support desk

favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()

5
2001:44C8:4559:C64F:440B:B7A8:4591:9F13 (talkcontribs)

MediaWiki 1.35.1 all-core with Skin:Timeless.

I don't use a favicon and prefer not to use one.

Each time I access the browser console in devtool I get this message:

favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()

How to get rid of this error?

I am afraid it might sabotage the rest of my JavaScript processing.

Bawolff (talkcontribs)

> I am afraid it might sabotage the rest of my JavaScript processing

It won't (its not a javascript error or related to js).


You can set $wgFavicon = false; which will stop mediawiki from setting one. However most browsers will assume that favicon.ico in the root web directory is the favicon if the website does not set one, and hence is outside of mediawiki's control.

2001:44C8:44C6:DC57:111B:6A1F:642:6F2F (talkcontribs)

I am not sure if I understood you correctly.


I have added to the end of my LocalSettings.php the code $wgFavicon = false; (which was not there before) and saved the file.

I then totally refreshed the webpage with CTRL+Shift+R in both Chrome and Edge and both displayed an error:


Chrome error

  • GET DOMAIN/favicon.ico 404 favicon.ico:1

Edge error

  • GET DOMAIN/favicon.ico 404 favicon.ico:1


Do you think this is totally unrelated to MediaWiki?


Thanks,

Bawolff (talkcontribs)
Jonathan3 (talkcontribs)
Reply to "favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()"