404 error fontawesome-webfont
-
Hi,
I keep getting these 404 errors,
/wp-content/uploads/2018/fonts/fontawesome-webfont.svg?v=4.7.0
/wp-content/uploads/2018/fonts/fontawesome-webfont.ttf?v=4.7.0
/wp-content/uploads/2018/fonts/fontawesome-webfont.woff2?v=4.7.0
/wp-content/uploads/2018/fonts/fontawesome-webfont.woff?v=4.7.0Do you guys have any idea? They have something to do with minification or other asset optimization?
The page I need help with: [log in to see the link]
-
Hi @sailors,
Are these files present at the location? Do you know what plugin uses these fonts?
Best regards,
AntonHi Anton,
They are not present. There’s no fonts folder in 2018 folder. I have no idea what plugins use them.
Hello @sailors
It seems that some plugin or theme is misconfigured and looking at these fonts in the wrong place. In order to narrow this down, a conflict test should be made.
First, either backup your site, so you can restore back, if any settings get lost, or better create a staging environment, meaning a complete and exact copy of this installation into another location/folder in the same server. Then start deactivating plugins one by one, until the error is gone. If you’re in a state where no other plugin is activated apart from HummingBird, try to activate a default theme like TwentySeventeen.
Here’s a nice flow chart of a generic conflict test that could assist you: https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gifWarm regards,
DimitrisThank you for your advice, will look into it.
Appreciate the cooperation @sailors 🙂
Please do let us know about your results, if more assistance is required here.
Warm regards,
DimitrisJust quick question,
I found this post,
https://wordpress.org/support/topic/console-404-errors-fontawesome-not-loading/and thought about Autoptimize plugin that I installed. Should I turn off its CSS code optimization(combine & inline CSS)? Is it compatible with Hummingbird? Does HB take care of all those options that Autoptimize does?
Hi @sailors,
Yes, the advanced settings in the Asset Optimization module allow you to combine/minify/move to footer and a few other useful settings. You should avoid enabling similar features in different plugins at the same time.
Best regards,
AntonI think HB was conflicting with Autoptimize. I deactivated Autoptimize and the 404 error is gone on one page so far, will monitor for the errors.
Also, it’s good to reduce the number of plugins.
Thanks for you help.
FYI,
The errors came back last night so I reactivated Autoptimize and turned off the Compress for font-awesome.css in Asset Optimization. It seems now all those errors are gone.
It was HB after all! Anyway, I’m glad no more errors.
Hello @sailors
Did you try to turn off compress for font-awesome.css in Asset Optimization and deactivate Autoptimize?
As mentioned Anton above, having two separate plugins for the same functionality, may lead to conflicts.Warm regards,
DimitrisHi Dimitirs,
I didn’t try that but then, will font-awesome.css get optimized in that case? If we turn off both of optimizations, will HB still optimize font-awesome.css somehow?
Hey @sailors
As long as you don’t select to compress them in HummingBird, they won’t get optimised at all.
I wonder why this started to happen again though, when you were able to find the conflict with Autoptimize in first place… Have you managed to locate the source of these files? I mean the theme or plugin that loads them. I could try to replicate in my end.Warm regards,
DimitrisNo, I didn’t locate the source of those files. I google searched “404 error fontawesome-webfont” and found some sites,
“minifying process somehow breaks the correct URL addresses.”
then, I just tried turning off the Compress for font-awesome.css and the errors are gone. If HB can take care of it that’s better since I can uninstall Autoptimize.
Also, I keep getting “Minify HTML” recommendation in GTmetrix even HB’s Minify HTML shows 100 score in the Performance Test. When I deactivated Autoptimize I still got that error. How can I get rid of that?
Hello @sailors
I’ve reviewed the HTML markup of your site and found out that these are part of your active theme, as they are located here:
/wp-content/themes/astrid/fonts/As you’ve mentioned that this worked for you before, can you give this another try and deactivate and delete Autoptimize plugin?
Then enable Asset Optimization of HummingBird and select to “compress”
/wp-content/themes/astrid/fonts/font-awesome.cssIf the error comes up again, simply deselect the “compress” option.
Also, I keep getting “Minify HTML” recommendation in GTmetrix even HB’s Minify HTML shows 100 score in the Performance Test. When I deactivated Autoptimize I still got that error. How can I get rid of that?
Minification isn’t the same as GZIP compression for HTML.
https://css-tricks.com/the-difference-between-minification-and-gzipping/
At the moment, HummingBird doesn’t provide any Minify HTML functionality.Warm regards,
Dimitris
The topic ‘404 error fontawesome-webfont’ is closed to new replies.