Error downloading fonts
-
I keep getting this error in the latest version 4.2.1
OMGF encountered an error while downloading Google Fonts: http_request_failed – A valid URL was not provided.
-
In GT-Metrix report its also stating the following so it seems that it’s not recognising these fonts.
There is 1 static component without a far-future expiration date.
and also urls don’t seem to point to right files.
There are 3 requests that are 404 Not Found
https://043eeofxm78b.cdn.shift8web.com/wp-content/uploads/omgf/open-sans-400-normal-W50b.woff2
https://043eeofxm78b.cdn.shift8web.com/wp-content/uploads/omgf/alex-brush-400-normal-vz7Q.woff2
https://043eeofxm78b.cdn.shift8web.com/wp-content/uploads/omgf/open-sans-400-italic-Xdc0.woff2Hi!
Could you provide some more information in order for me to debug the issue:
– Which theme are you using?
– What URL do you have defined in the ‘URL to Scan’ field?
– Please provide a screenshot (or list) of your OMGF settings.As for your 2nd question: you either have these resources set to preload with another plugin, or you’re using a CSS minify/combine plugin which is still serving an old stylesheet, or it’s a caching plugin still serving an old stylesheet.
How do I know? The filenames give away that they were generated by OMGF v3 ??
Hi,
You were correct. It was the critical css created by Wp-Rocket.
Regenerated that and both of the errors have dissapeared.I am still however getting the call for these fonts which don’t seem to get replaced.
Regards
DaveGreat, so we’re one step closer ??
– Which theme are you using?
– What URL do you have defined in the ‘URL to Scan’ field?
– Please provide a screenshot (or list) of your OMGF settings.Hi,
Astra with child theme and elementor as page builder.
Settings are set to
Optimisation – Manual
Font Display – SwapAny pretty much everything else untouched.
I did change the font directory url to do fonts instead of omfg when trying to see if I could fix the previous issues and have run it in auto mode.
Regards
DaveMe too when activating Manual and supplying an URL. OMGF encountered an error while downloading Google Fonts: http_request_failed.
Is I leave the URL to scan field empty, I get OMGF encountered an error while fetching this site’s frontend HTML: http_request_failed
You shouldn’t leave the URL to Scan field empty, because then OMGF doesn’t know where to look ??
But, which theme are you using @argentum?
@indepthphotos, I use Astra, too, so I’m sure the theme’s not the problem. I’ll do some testing with Elementor and get back to you.
OceanWP theme. Using Elementor the latest version. Latest version of WP.
Ok, again Elementor. Starting to see a pattern here… ??
I’ll get back to you, guys!
Hrm, yeah. Elementor 3 isn’t rumoured to be the most stable plugin released … ??
Why is the font css in the page source linked to a wp-json directory? There is no such directory on the server.
That’s OMGF’s Download API. You have Optimization Mode set to Automatic I assume? In that case, OMGF will scan for Google Fonts while your pages are being visited and capture any fonts that aren’t downloaded yet. When it finds one, it’ll download it. After that, on every subsequent pageload, it’ll serve the stylesheet.
So, if you reload the page you found this link on, you should see a stylesheet instead. If not, flush any Full Page Caching plugins you’re using.
All right. But the uploads/omfg remains empty. All settings are at default.
That’s weird. So it does detect the fonts, it even attempts to download them, but it fails to write them. That’s why it keeps calling the API, because it can’t find the stylesheet.
Could you try the following?
– Set OMGF Optimization Mode to Automatic,
– Open a new Browser Tab and press F12 to open DevTools,
– In DevTools, open up the Network Tab,
– Visit your site in that browser tab.
– Pinpoint the API URL (the you sent earlier in this forum topic) and click on it,
– Information about the API call should pop-up and there should be a tab ‘Response’ or ‘Answer’.
– Within that tab, do you see any type of error message? Or any information that might be useful?Can’t find the API URL in the network tab, unfortunately. This is most weird. The plugin managed to clear the font cache, but not add fonts again.
- The topic ‘Error downloading fonts’ is closed to new replies.