Why are some icons not displaying correctly on my webpage?

  • Thread starter strangerep
  • Start date
In summary, these icons are caused by fonts that are blocked by NoScript, but are allowed by default because of a security vulnerability from 6 years ago. NoScript is preventing the icons from being downloaded, but allowing scripts globally makes the unicode placeholder into icons. I suggest whitelisting the CDN.
  • #1
strangerep
Science Advisor
3,747
2,188
I get lots of little squares containing stuff like "F032", "F011", and so on.

When I position my cursor over them, I see they're obviously meant to be icons -- because the correct name pops up.
 
Physics news on Phys.org
  • #2
Perhaps taking a screenshot would help. I don't see such behaviour. Are you using any add-on that could be blocking images?
 
  • #3
Definitely post a screenshot.

Clearing your cache shouldn't hurt as well.
 
  • #5
I have the same problem, but I know what the cause is (for me). These icons are actually downloadable fonts from a third party. NoScript blocks them by default. At one time there was a security vulnerability with FireFox and downloadable fonts. I haven't been able to find out if this has been corrected so I am reluctant to allow these objects to be downloaded. If they were just ordinary gif images it would not be a problem.
 
  • #6
TurtleMeister said:
I have the same problem, but I know what the cause is (for me). These icons are actually downloadable fonts from a third party. NoScript blocks them by default. At one time there was a security vulnerability with FireFox and downloadable fonts. I haven't been able to find out if this has been corrected so I am reluctant to allow these objects to be downloaded. If they were just ordinary gif images it would not be a problem.

At the risk of adding smoke to the fire: I've noticed Greg "juggling" forum resources between servers as he strives to do his best. Yesterday I was prompted on several occasions by my browsers telling me that the security certificate was not valid for the current PF server. (This happens when you're playing three-card monte to keep the website available.) Around the same time I also noticed a couple of text areas that displayed the "Fnnn" numbers. Wondering if your browser wasn't downloading the req'd bits because of the certificate mis-match.
 
  • #7
Ok, allowing scripts globally make the unicode placeholder into icons.
So, it is not a unicode problem of my installation.
Any hint on what site to whitelist? I cannot surf the web with my shields down. There are Romulans out there.
 
  • #8
TumblingDice said:
At the risk of adding smoke to the fire: I've noticed Greg "juggling" forum resources between servers as he strives to do his best. Yesterday I was prompted on several occasions by my browsers telling me that the security certificate was not valid for the current PF server. (This happens when you're playing three-card monte to keep the website available.) Around the same time I also noticed a couple of text areas that displayed the "Fnnn" numbers. Wondering if your browser wasn't downloading the req'd bits because of the certificate mis-match.
No, it's just NoScript blocking them in my case. I will keep them blocked for the time being until I have time to learn more about it. I was hit with malware two times about 6 years ago. Since then I've been using FireFox with NoScript and I haven't had any incidents.
 
  • #10
Borek said:
Definitely post a screenshot.
OK,... let see if I can do this...

snapshot1.png
snapshot2.png
snapshot3.png
snapshot4.png


[Edit: and... I just found another problem. When I click on one of my thumbnails above, it doesn't display. Just a very dark overlay screen where the image is obviously meant to appear, but there's no actual image.

Clearing your cache shouldn't hurt as well.
Clearing my cache makes no difference.
 
Last edited:
  • #12
SredniVashtar said:
Follow this instructions: Unicode placeholders
Thanks. I unchecked "Forbid @font-face", but it made no difference, even after reloading the page.
[Hmm, or do I need to restart Firefox?]
[Edit: no, that made no difference.]
 
  • #14
Greg Bernhardt said:
Did you white list the CDNs?
In the popup NoScript list, I don't see anything about "CDN". Or does it go by some other url?
 
  • #16
Last edited by a moderator:
  • #17
Try white listing maxcdn.bootstrapcdn.com
 
  • #18
That's what made the trick for me.
 
  • #19
Jimmy said:
Try white listing maxcdn.bootstrapcdn.com
Thanks, I just tried that but... no effect. :L

The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
That's because, having a too-open mind means some your brains can fall out.
 
  • Like
Likes Evo
  • #20
Yeah, I do not use JavaScript, I hope we can support a working fallback version.
 
  • #21
Svetlana said:
Yeah, I do not use JavaScript, I hope we can support a working fallback version.
I'm surprised you can even post without JS. You're only option is to use the app.
 
  • #22
Actually, the forum's functionality seems to degrade very gracefully with javascript disabled.
 
  • Like
Likes Greg Bernhardt
  • #23
Meanwhile, the icons still fail to display for me. :(
 
  • #24
Try to enable script globally, just to see if you can see the icons.
If you can you'll have to allow more sites.
Do you control cookies, too? Allow cookies for PF.

Another possible hurdle for the icons: do you have a host file?

Finally, just for the sake of trying: install Palemoon (you can have it side by side with Firefox and you can unistall it later) and see if you can see the icons from there.

I'm out of ideas.
 
  • #25
SredniVashtar said:
Try to enable script globally, just to see if you can see the icons.
Doesn't help.

Do you control cookies, too?
I thought I did (and I thought I'd allowed cookies for PF). But with my current version of Firefox I can't find where that's controlled!? I can't find it under Preferences.

Another possible hurdle for the icons: do you have a host file
I don't maintain my own /etc/hosts file, if that's what you meant. I just get everything via my ISP's nameserver.

But things worked fine with the old PF -- the problems only started with PF 4.0.

Finally, just for the sake of trying: install Palemoon (you can have it side by side with Firefox and you can unistall it later) and see if you can see the icons from there.
I'll try that later when I have more time. (Firefox has been annoying me lately with each new version -- sigh.)

Thanks anyway for your suggestions.
 
  • #26
strangerep said:
Meanwhile, the icons still fail to display for me. :(

@strangerep : I'm cautiously optimistic this info will help. I've been able to repro your problem on my dev box:
Firefox PF4 Home.png


What I found was buried under "Options" -> "Content" -> "Advanced":
Firefox Options.png


Click the Advanced button to go here:
Firefox Advanced Fonts.png


Does all this look familiar to you on your version of Firefox? I was able to reproduce the problem by clearing "choose their own fonts" option. Hoping this is where your problem can be resolved. If checking this option doesn't do the trick, I suggest taking a closer look at the other font options to be sure you aren't over-riding the Unicode font that contain the graphics.

EDIT: Hmmm... Pics display in Edit window but not in message. <sigh> I'll do add uploads for now. ARRRGH! Fighting with the edit display! Maybe because they're sourced from http and not https...?

Edit by Borek: edited that for you; no idea why the external images were not displayed. When it comes to attachments - for some reason numbers used in tags in the post body were different from the numbers of attachments themselves; have you tried to attach them twice? Post preview when there are images present is apparently somehow broken, you are not the first person to complain.
 
Last edited by a moderator:
  • Like
Likes strangerep and Jimmy
  • #27
⇈ Even if that's not the problem it's still a great suggestion and will doubtless help someone in the future. I bet I haven't touched those preferences in years.
 
  • #28
TumblingDice said:
[...] What I found was buried under "Options" -> "Content" -> "Advanced":
OK, you've diagnosed it correctly. Thank you.

Trouble is, I dislike the default fonts for ordinary text, and prefer serif style. This is going to be a pain.
 
  • #29
strangerep said:
Trouble is, I dislike the default fonts for ordinary text, and prefer serif style. This is going to be a pain.
Someone here once posted how a plugin for FF could override some CSS values. Using that you could choose your own font.
 
  • #30
I use Stylish for managing custom CSS per site. It wouldn't be difficult to set up.

You can also do global styles which is probably what you need in this case.
 
  • Like
Likes TumblingDice
  • #31
strangerep said:
OK, you've diagnosed it correctly. Thank you.
AWESOME!

Trouble is, I dislike the default fonts for ordinary text, and prefer serif style. This is going to be a pain.
Let's see what we can do to improve that attitude! :p One step at a time. I'll look further at my desktop tomorrow in the unlikely event that others don't provide suggestions first. :cool:
 
  • #32
IF you decide to try Stylish, once it is installed:
  • Click its icon > Write new style > Blank Style
  • Fill in the name field (e.g. All Sites)--any name will do though.
  • Paste the following CSS into the editor and save.
Code:
@namespace url([PLAIN]http://www.w3.org/1999/xhtml);[/PLAIN] 

*
{
  font-family: serif !important;
}

@-moz-document domain("physicsforums.com") {

  .fa
  {
    font-family: FontAwesome !important;
  }

}

If you don't want to install a new extension, the above CSS can be added to userContent.css. (Without the namespace declaration). That file resides in your Firefox profile. A lot of people have trouble finding it but here's a pretty simple way to get to it:
  • Help > Troubleshooting Information
  • Click "Show Folder" under "Application Basics" near the top.
  • Open the Chrome folder.
  • Open "userContent.css" with a text editor and add the CSS below any existing CSS.
  • Save the file and (Re)start Firefox.

If userContent.css isn't there, then just create a new text file and save as "userContent.css". The name is case-sensitive so it needs to be exactly as shown.

ETA: Forgot to mention that once you get the style in place, you can select whichever font you want for serif in the advanced font settings and that font will be used.
 
Last edited by a moderator:
  • Like
Likes Greg Bernhardt
  • #33
Well, I forgot to take MathJax fonts into account; equations look really funky without them. So, hopefully this is my last edit:
Code:
*:not([style*="font-family: MathJax"])
{
  font-family: serif !important;
}

@-moz-document domain("physicsforums.com") {

  .fa
  {
  font-family: FontAwesome !important;
  }

}
 
  • #34
First, thanks everyone for the suggestions. But,... TBH,... I'm reluctant to introduce any more customizations into my setup. (I already have too long a list that I have to re-apply every 2-3 years when I do a total OS upgrade or switch.)

I think I'll just tolerate the partial lack of functionality/appearance for a while, then see how I feel later.

I want to spend more time studying/researching actual physics, (generalized dynamical groups, and Finslerian extensions to relativity), but I can't do very much of that on PF. :(

Thanks again.
 

Related to Why are some icons not displaying correctly on my webpage?

1. Why are some icons not displaying at all on my webpage?

There could be several reasons for this. One possibility is that the icon files are missing or have been deleted from the server. Another possibility is that the icon files are not linked correctly in the HTML code. It is also possible that the browser is not able to load the icon files due to network issues or outdated software. Checking for these issues and making sure the icon files are properly linked should resolve the problem.

2. Why are some icons displaying as broken images on my webpage?

This could be due to a few reasons. One possibility is that the icon files are corrupted or damaged. Another possibility is that the path to the icon files is incorrect in the HTML code. It is also possible that the browser is not able to load the icon files due to network issues or outdated software. Checking for these issues and fixing any errors in the HTML code should resolve the problem.

3. Why are some icons displaying incorrectly on certain browsers?

Different browsers may interpret HTML and CSS code differently, which can result in icons displaying incorrectly on some browsers. This could also be due to the use of browser-specific CSS properties or unsupported image formats. Testing the webpage on different browsers and using standard HTML and CSS code can help ensure that icons display correctly on all browsers.

4. Why are some icons displaying incorrectly on mobile devices?

Mobile devices have smaller screens and different display capabilities compared to desktops, which can result in icons displaying incorrectly. This could also be due to the use of fixed pixel sizes for icons instead of using relative units like percentages or ems. Using responsive design techniques and relative units for icons can help ensure they display correctly on mobile devices.

5. Why are some icons displaying differently on different devices?

Icons may appear differently on different devices due to differences in screen resolutions and display capabilities. For example, an icon that looks crisp and clear on a high-resolution display may appear pixelated on a low-resolution display. Using vector-based icons or creating multiple versions of the same icon for different screen resolutions can help ensure they display consistently on different devices.

Similar threads

  • Feedback and Announcements
Replies
5
Views
2K
  • Computing and Technology
Replies
30
Views
3K
  • Feedback and Announcements
Replies
1
Views
536
  • Feedback and Announcements
Replies
16
Views
3K
  • Computing and Technology
Replies
5
Views
1K
  • Other Physics Topics
Replies
4
Views
492
Replies
2
Views
947
  • Programming and Computer Science
Replies
4
Views
1K
Replies
8
Views
720
Back
Top