I get these errors in dev console. The page loads for a long time. I refresh the page and the errors are gone. What could cause this?
downloadable font: STAT: Invalid nameID: 17 (font-family: “Signika” style:normal weight:400 stretch:100 src index:0) source: https://www . mysite . se/wp-content/uploads/omgf/google-fonts-1-mod-plydp/signika-normal-latin.woff2
downloadable font: Table discarded (font-family: “Signika” style:normal weight:400 stretch:100 src index:0) source: https://www . mysite . se/wp-content/uploads/omgf/google-fonts-1-mod-plydp/signika-normal-latin.woff2
downloadable font: STAT: Invalid nameID: 17 (font-family: “Signika” style:normal weight:700 stretch:100 src index:0) source: https://www . mysite . se/wp-content/uploads/omgf/google-fonts-1-mod-plydp/signika-normal-latin.woff2
downloadable font: Table discarded (font-family: “Signika” style:normal weight:700 stretch:100 src index:0) source: https://www . mysite . se/wp-content/uploads/omgf/google-fonts-1-mod-plydp/signika-normal-latin.woff2
downloadable font: STAT: Invalid nameID: 17 (font-family: “Signika” style:normal weight:300 stretch:100 src index:0) source: https://www . mysite . se/wp-content/uploads/omgf/google-fonts-1-mod-plydp/signika-normal-latin.woff2
downloadable font: Table discarded (font-family: “Signika” style:normal weight:300 stretch:100 src index:0) source: https://www . mysite . se/wp-content/uploads/omgf/google-fonts-1-mod-plydp/signika-normal-latin.woff2
]]>It’s only active on our internal testing page because we had to remove it on the public production site due to very long waiting times. The “Query Monitor” plugin shows a strange behaviour. see screenshot. The strange this is, that this ressource can be loaded without problems when I manually insert it into the browser. This really slows down a lot, because we have this 2-3 times and the page had a duration of mor e than 10 seconds to load.
https://i.postimg.cc/9fZxn3VS/image.png
Despite all of the fonts on the page having the “early load” setting checked, I don’t see any preload
links for the font files. On another site, I added those manually, and it made a noticeable difference in Lighthouse performance score.
[To see more details in the code, bypass caching by adding ?nocache
to the URL]
Hi Daan,
Many years ago we removed this plugin and it’s Pro version. However it has left it’s traces behind.
omgf_pro_processed_local stylesheets – 166309
How do we remove these are they are causing AUTOLOAD error.
]]>Hi the plugin seems to be working well and I used the german checker and its green and says no google fonts found, but do i need to use the elementor disable google fonts option? Thanks
]]>Hello,
many thanks for the great plugin. It really improve performance.
I’d be happy to improve performance even more caching font files on client side adding expiration date through mod_expires.c in .htaccess like:
ExpiresByType font/woff2 “access 365 day”
I don’t like to set Cache-Control “must-revalidate” because it significantly drops cache optimization.
The problem is that if font files change cache would clean up but if url (in <link) had version parameter based, say, on file date the problem would exists.
Could you add version parameter to <link like:
<link html=”….woff2?ver=1455555999′
and to css-file correspondingly, please
Hello,
Now I am not sure if this is related to this plugin. So sorry if this is a miss.
But I am getting a 404 on https://www.dezilverwinkel.nl/wp-admin/fonts/Inter-Bold.woff and all other Inter fonts. Aren’t these supported by OMGF?
]]>Hello,
After I migrated to clients hosting I am getting CORS errors for my fonts. Any idea how to fix that?
]]>First of all, thank you for developing this great plugin.
I recently realized that OMGF is unable to pull multiple fonts for me. For example:
function add_google_fonts() {
wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css2?family=Heebo:wght@600&family=Mukta:wght@400;700&display=swap', false );
}
add_action( 'wp_enqueue_scripts', 'add_google_fonts' );
This results in only one font being found, always the last one—in this case, Mukta.
However, if I write my code this way, it is able to find all fonts:
function add_google_fonts() {
wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css2?family=Heebo:wght@600', false );
wp_enqueue_style( 'wpb-google-fonts-2', 'https://fonts.googleapis.com/css2?family=Mukta:wght@400;700', false );
}
add_action( 'wp_enqueue_scripts', 'add_google_fonts' );
Am I doing something wrong? I am pretty sure it was working fine before. I started seeing this issue with new sites only.
Thanks.
]]>Hi,
I am not exactly sure if this is OMFG issue or theme issue , but once I enable OMFG , one of my product pages crashed with fatal error and generating below log, while if OMFG disabled, this page loads fine.
[STDERR] PHP Warning: Array to string conversion in /home/xxx/public_html/wp-content/themes/woodmart/woocommerce/single-product/add-to-cart/variable.php on line 235\n
[STDERR] PHP Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /home/xxx/public_html/wp-includes/blocks.php:1409\nStack trace:\n#0 /home/xxx/public_html/wp-includes/blocks.php(1409): str_contains()\n#1 /home/xxx/public_html/wp-includes/formatting.php(5227): filter_block_content()\n#2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): wp_pre_kses_block_attributes()\n#3 /home/xxx/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#4 /home/xxx/public_html/wp-includes/kses.php(946): apply_filters()\n#5 /home/xxx/public_html/wp-includes/kses.php(754): wp_kses_hook()\n#6 /home/xxx/public_html/wp-includes/kses.php(2172): wp_kses()\n#7 /home/xxx/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/attributes-meta-boxes.php(400): wp_kses_post()\n#8 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): woodmart_add_term_hint()\n#9 /home/xxx/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#10 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3616): apply_filters()\n#11 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): wc_display_product_attributes()\n#12 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#13 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#14 /home/xxx/public_html/wp-content/plugins/woocommerce/templates/single-product/tabs/additional-information.php(30): do_action()\n#15 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/xxx/public_html...')\n#16 /home/xxx/public_html/
[STDERR] om/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1890): wc_get_template()\n#17 /home/xxx/public_html/wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php(142): woocommerce_product_additional_information_tab()\n#18 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/xxx/public_html...')\n#19 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1643): wc_get_template()\n#20 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): woocommerce_output_product_data_tabs()\n#21 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#22 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#23 /home/xxx/public_html/wp-content/themes/woodmart/woocommerce/content-single-product.php(231): do_action()\n#24 /home/xxx/public_html/wp-includes/template.php(812): require('/home/xxx/public_html...')\n#25 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()\n#26 /home/xxx/public_html/wp-content/themes/woodmart/woocommerce/single-product.php(28): wc_get_template_part()\n#27 /home/xxx/public_html/wp-includes/template-loader.php(106): include('/home/xxx/public_html...')\n#28 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx/public_html...')\n#29 /home/xxx/public_html/index.php(17): require('/home/xxx/public_html...')\n#30 {main}\n thrown in /home/xxx/public_html/wp-includes/blocks.php on line 1409\n
the log seems more toward the theme , but I can’t get the part disabling OMFG makes it work though.
it would be great if you could share some light about the issue.
]]>Hi Daan,
I wanted to use your great plugin with my site (uses careerfy theme) but while it detects the fonts, it doesn’t seem to actually swapping them and shows system fonts only.
Any idea what can be done about this ?
Many thanks.
PS I will send the link to the website on your contact form.
]]>I found this post: https://www.ads-software.com/support/topic/omgf-does-not-display-correctly-with-my-language/ while troubleshooting my posts.
On 5.8.3 (selected subsets Latin, Latin Extended), Vietnamese characters do not display correctly.
On 5.8.3 (selected subsets Latin, Latin Extended, Vietnamese), Vietnamese characters do not display correctly.
On 5.9.0 (selected subsets Latin, Latin Extended, Vietnamese), Vietnamese characters do not display correctly.
Only disabling the OMGF plugin displays it properly. I’ve left the plugin active for now so you can see.
]]>Hi, I am unable to remove preload font of old domain.
I have moved from testcve.iriscarbon.com to iriscarbon.com but in preload i can see testcve and my fonts also not loading. i have uninstall plugin also but not working.
]]>Hello.
These strings are hardcoded and cannot be translated:
Thanks.
]]>Hello there,
I have a plugin where i use the inbuilt php function http_response_code(), which throws 404 error when OMGF plugin is activated, as soon as we deactivate this plugin it works fine.
]]>i’m finished my web design using elementor pro + hello elementor child theme
i installed OMGF plugin and activate option Divi/Elementor Compatibility
finally i used OMGF options on admin bar to re run fonts opt
and from inspect > network
i see the fonts locales on my host
problem is > the font style is not applied on text
when deactivate plugin the font style works
What should i do ?
]]>Hello. I was developing a new website on SiteGround hosting and then I moved it to Elementor Hosting to push it live. After this process, it doesn’t find my Google Fonts anymore. It only finds the “Google Site Kit” plugin ones (see screenshot here).
I’ve read the guides, cleared every cache, double checked Autoptimize and Asset Cleanup settings…nothing worked.
The configuration is exactly the same I had on the development environment, only the hosting and domain changed.
Hope you can help. Thank you.
]]>Hello. First of all: thank you for this great, easy and essential plugin.
I’m struggling with the LCP score for several pages on my website. In all these cases, the LCP is my <h1> heading which is rendered extremely slowly (according to GooglePageSpeed).
See a report here
I’m using OMGF to optimize and host locally my Google Fonts and I’ve set the font-display option to Swap. Therefore, as far as my limited knowledge tells me, the <h1> should be served “immediately” to the user with the system font and then swapped with the Google Font, right? Why isn’t happening?
I’ve also set the affected font (Roboto, 900) to be preloaded, but nothing changed.
I hope you can help me figure it out. Thank you again.
]]>Two of my site’s top 10 largest autoload entries under wp_options are from this plugin. I tried emptying cache and resetting, but the size of these did not change at all. I have Roboto Condensed set to “load early” for 3 font weights, and another detected font set to “don’t load” for every type since it’s a default theme font I’m not using. How can I reduce the size of these? And is it possible to disable autoload?
omgf_fonts (2nd largest autoload, 31kb)
omgf_optimized_fonts (8th largest, 9kb)
]]>Hey @daanvandenbergh,
My suggestion is for the new admin bar addition to be opt-in, please. I don’t like plugins suddenly cluttering an admin UI for clients or any of my other sites.
Please consider making this opt-in.
Jeroen
]]>I have php 7.2.24, WordPress 6.4.2 and using Oxygen plugin with no theme.
When I try to activate the latest version at the moment of OMGF plugin the backoffice completely breaks and get this error:
Parse error: syntax error, unexpected ‘)’ in …/wp-content/plugins/host-webfonts-local/src/Admin/Settings/Optimize.php on line 200
Also the frontend looks bad, without any fonts.
The following link is a screenshot with all the plugin I have installed. https://ibb.co/wQK1gH0
If you can’t fix it at the moment it will be very helpful if you could tell me a previous version of the plugin that work in the described environment, so I can install it.
Many thanks!
]]>Roboto-flex isn’t being displayed on ios. PC and Andriod is fine but ios isn’t showing roboto-flex
]]>
Hello, I have been using the OMGF plugin for almost 1 year. It is amazing, and I want to thank you for all the efforts you have put into it.
Recently, I have been facing the following issue:
The letter “A” does not appear on iPhones. Below is a screenshot for an example. It is supposed to be “OPPGATE,” instead, it shows as “OPP GTE,” and on other pages where there is an “A” in the word, it does not display properly.
]]>Hi together,
i have the followig error in chrome console:
The resource https://www.gruenblattmonster.de/wp-content/uploads/omgf/omgf-stylesheet-67/oswald-normal-latin-600.woff2 was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as
value and it is preloaded intentionally.
shop/:1 The resource https://www.gruenblattmonster.de/wp-content/uploads/omgf/omgf-stylesheet-67/oswald-normal-latin-ext-600.woff2 was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as
value and it is preloaded intentionally.
i tryed to deactivate any caching and performance plugins but error persists untill i deactivate OMGF. if you need further information please me know.
kind regards
Tom
]]>Hello there!
When updating WooCommerce to 8.5.1, OMGF is breaking the functionality of adding items to the cart. I can select a product or variation and add it to the cart, but the cart stays empty. Even though I get the message that the product was added to the cart. When I deactivate OMGF everything is back to normal.
Please can someone help? I cannot show a live example as I have (thankfully) only updated my staging environment until now. But if there is any chance of sending login credentials, you can take a look for yourself.
Here’s a screen capture:
https://lumiqy.de/OMGF_WC8.5.1_issue_20240117.mp4
Thanks
Marco
Hello, I am trying to use OMGF on a multilingual WordPress site which runs with WPML, but using another domain for the translated site: co2-pos.de (German) and co2-pos.com (English translation).
Probably because of that, OMGF does not work on the translated site and instead default fonts are used. Is there a way to fix this?
]]>OMGF encountered an error while fetching this site’s frontend HTML: 401 – Unauthorized
I know this error message was responded to in another question, but those were for sites that are live and visible. I’m using the latest free version of OMGF on a staging site and getting this error message. My theme is Hello, I have no plug-ins that are on the conflicting plugins list, and my staging site is https and I’ve attached a screenshot of the OMGF panel. Any ideas why I’m getting this message? Is it because it’s a staging site? Thank you in advance. https://imgur.com/QNSAKqv
]]>Hello everything is fine?
I’m using the amp version on my WordPress, but when I use the OMGF plugin, it adds a code:
https://prnt.sc/6CrBDDhuAw5k
How do I not add this code to the plugin I developed.
I have a multi-language website using Polylang.
When OMFG is set to Auto-Configure Subsets, it never detects the Cyrillic character subset.
When i define them manually, it works fine, but then PageSpeed Insights tests seem to try to load latin fonts which don’t exist:
/wp-content/uploads/omgf/google-fonts-1/rubik-normal-latin.woff2
/wp-content/uploads/omgf/google-font-jost/jost-normal-cyrillic.woff2
/wp-content/uploads/omgf/google-font-jost/jost-normal-latin.woff2
Even though i don’t encounter these errors when visiting the website myself.
These fonts are actually modified (removed all italic and some higher weights), so these fonts should be found individually inside the modded folder names instead.
For example:
https://i.postimg.cc/ZYLM7nbT/image.png
Is there any way to fix or prevent this?
Hi, unfortunately the newest plugin version v5.7.7 produces a PHP Notice en masse if WP_DEBUG is enabled:
[12-Dec-2023 15:45:12 UTC] PHP Notice: Undefined index: _wpnonce in /usr/www/users/zeitrm/wp-content/plugins/host-webfonts-local/src/Admin/Actions.php on line 59
]]>