Topic on Project:Support desk

Hello! Many issues faced and solved. A working favicon is my white whale.

16
GuacamoleRob (talkcontribs)

For starters, I put a 32x32 pixel favicon.ico in my root directory, adjacent to my LocalSettings.php. Stil, no favicon turns up.

Then, I used the .ico's source .png. I added $wgFavicon = "$wgResourceBasePath/resources/assets/w.iki.png"; to my LocalSettings.php and still nothing.

What am I missing? Any ideas?

Jonathan3 (talkcontribs)

The first thing should have worked. What do you see when you you type (your wiki URL)/favicon.ico into the address bar? Is it displayed?

GuacamoleRob (talkcontribs)

Great question - I had not checked yet.


https://usa.abandonedbusiness.club/favicon.ico looks like the file it should!


Your response is why I posted here. No matter what I google, I see the same two methods for setting the favicon and nothing about troubleshooting this issue. It JUST isn't showing up and obviously, there is a reason but I am out of ideas. I am clueless.

Bawolff (talkcontribs)
GuacamoleRob (talkcontribs)

Gosh, I love you Bawolff. Everything that comes up, you seem to solve with less than 3 lines of narrative and the number of posts you handle in a day is remarkable. Can I send you a milkshake? 😀

GuacamoleRob (talkcontribs)

I use Notepad++, so ultimately what I resorted to was coming back to copy Bawolff's code and pasting it in the line under mine. I realized my mistake is that I'm so noob at PHP. Instead of encapsulating my string with -'- quote marks, I was of course using -"- quote marks.

I feel like a moron. Wasted so much time. Apologies to all!

Bawolff (talkcontribs)

just fyi, the difference between ' and " in php is how $ sign and \ is handled. If you are using a variable defined earlier in your value, like $wgResourceBasePath, you need to use ", where if you use a $ sign that is not a variable to be replaced, like the $1 in the value of $wgArticlePath, you need to use '. If your value does not contain $ or \, then it makes no difference if you use ' or ".

GuacamoleRob (talkcontribs)
Jonathan3 (talkcontribs)

In Manual:$wgFavicon the examples have it as a file path rather than a URL. How about uploading it as an image on your wiki itself and using the $wgFavicon = "/images/6/64/Favicon.ico"; example there? (Or whatever the /6/64 turns out to be with a lower-case f.)

Bawolff (talkcontribs)

just to be clear, it can be a relative url, but it can't be an actual file system path (e.g. /var/www/html/... wont work)

GuacamoleRob (talkcontribs)

Thanks for the response, Jonathan3! .ico isn't supported by default, so I just FTP'd favicon.ico to /images/2/26/. If you go to https://usa.abandonedbusiness.club/images/2/26/favicon.ico the image is there.

$wgFavicon = "/images/2/26/favicon.ico"; is all the way at the end of my LocalSettings.php. That's the only mention of "favicon," in the file.

It's still not working!

Jonathan3 (talkcontribs)
GuacamoleRob (talkcontribs)

Good note! Thank you.

So, with that in mind, my first effort was to create an exception rule on Cloudflare for

/images/2/26/favicon.ico

allowing that file to be served without security. I flushed the cache while I was there, too. Then, opened an incognito window in my test browser (Which clears cache every time it's closed) and it didn't work. Went through my now typical routine and checked 3 browsers, it didn't work.

So I changed my $wgServer = to https because I hadn't been introduced to that setting yet. Went to Cloudflare, deleted the exception rule, cleared cache, and repeated verification routine. It still didn't work!

This issue is simply one of 3 websmithing white whales I'm dealing with right now. White. Whale. This issue just refuses to be solved!

Also, I can't get the font Trinigan FG to work on any sort of any kind of Wordpress, and I can't get phpBB to install on my IONOS webspace. These 3 problems are all I've done with my waking hours since i woke on Monday. 😩

Bawolff (talkcontribs)

So going to your site on firefox, it seems like the favicon is working.

However, i do notice that there seems to be some sort of issue with closing the http/2 stream, which makes firefox think the page is still loading and delays showing the favicon. I think there's been some reports of that happening in the past with cloudflare. You could try setting $wgDisableOutputCompression = true; and see if that helps.

GuacamoleRob (talkcontribs)

Wow, hey! That's some great feedback! My wiki is seeing a little traffic today (I'm sure most of it from various tech support people I've been in touch with about one thing or the other), so it's refreshing to hear they've been greeted by a site without a bouncing, blank favicon screaming "This website is administered poorly."

I just checked on Firefox, and boom - there it is! At long friggin' last, Bawolff! One of the white whales is finally on the ship! I can't thank you enough, man. Whoo! That's such a huge relief.

Any idea why it's still not showing up in Edge OR Opera, though? My main and my test browser both still fail to load the favicon. What's Firefox that those other guys do not?

I've been using Opera as my primary for years, but a number of smaller things like this keep coming up. I guess it's time to think about moving back to Firefox.

Anyway, thanks again!

SyncmasterN (talkcontribs)

Had the same problem in Chrome.

Deleting the Chrome cookies helped and double checking the LocalSettings file

Reply to "Hello! Many issues faced and solved. A working favicon is my white whale."