@gymsfordogs This is known issue with the recent update of WP-Optimize, Our development team is working on the same and a fix will be available in the future release.
After disabling minify css the problem is resolved..seems like an issue with the last updated and minify of css. I will continue to do some additional testing
@gymsfordogs Glad to hear disabling minify option fixed the issue, we will be soon launching the new version which will fix the font issue.
@bornforphp I have the same issue. Any idea when the new version of WP-Optimize will be available? Weeks or days? Thanks in advance.
-
This reply was modified 5 years ago by
robdormans.
-
This reply was modified 5 years ago by
robdormans.
@robdormans We don’t have the exact ETA for the release of new version, but as soon as its released we will update you.
Thank you for your time and patience.
The issue is still persist in the latest update too (3.1.11). Because of this, the webpage is not rendered successfully. I also noticed that this issue only affected certain pages, not all of them. refer the warning message below.
Warning: strpos() expects parameter 1 to be string, array given in D:\InetPub\vhosts\xxx.com\wp.xxx.com\wp-content\plugins\wp-optimize\minify\class-wp-optimize-minify-fonts.php on line 203
My observation: there is something wrong with ‘ Converts google font api version 1 font specification into API V2’ function.
The 3.1.8 version does not have this problem.
Please check and rectify. thank you.
@akishell21 Thanks for reporting, I’ll share this with our development team for further testing.
I had the same issue with minification preventing Google Fonts from working. Disabling CSS minification fixed the problem. I thought that was a bit extreme, so I experimented with other settings, and found that I could keep CSS minifcation enabled, and on the Minify > CSS tab I could paste the code from Google Fonts into the “Load the following CSS files asynchronously” box:
https://fonts.googleapis.com/css2?family=Changa+One:ital,wght@0,400&family=Exo:ital,wght@0,400;0;0,400;1;0,500;0;0,500;1;0,700;0,700;1;0,wght@0;1,tal&display=swap
That code is unique to this site; you’ll need to use the code you get from Google Fonts. That fixed the problem.
@chad-warner you are awesome mate. It worked like a charm for me. I had many failed attempts to rectify this. thanks for sharing the knowledge mate. cheers.