• Resolved Oleg Komarovskyi

    (@komarovski)


    Hey everyone,
    All my sites have broken font awesome fields.
    In console log, I see that plugin loads font awesome css from CDN, but such version doesn’t exist on the CDN (for now) – https://cdn.jsdelivr.net/fontawesome/5.0.6/css/font-awesome.min.css
    Plus, I’m using font awesome 4.7.0 – not the 5+.

    Someone else have that issue, maybe someone have a quick fix?

    PS: Updating plugin to latest version didn’t help.
    PS2: Removing the plugin, then installing new version helps, but I have over 300+ websites with such issue, so I hope you have some quick fix.
    PS3: my current plugin version is 2.0.9

Viewing 5 replies - 1 through 5 (of 5 total)
  • Until it gets fixed, try adding this to your functions.php file. Worked for me.

    function override_fontawesome_version() {
    	
    	return '4.7.0';
    }
    add_filter('ACFFA_override_version', 'override_fontawesome_version');
    Plugin Author Matt Keys

    (@mattkeys)

    Hi Oleg,

    Sorry you are having issues. This problem was preemptively fixed in version 2.1.0 before FA 5.x was released. In version 2.1.0 I limit the maximum FA version returned by jsDelvr to 4.x.x. I know you said that you updated the plugin and that didn’t immediately fix the issue, but I suspect the reason you were still seeing problems was due to some caching on your servers or caching plugin.

    Duncmorley, thank you for providing that advice here too. The code you provided is another great way to limit/specify the exact version of FA used with this plugin.

    I can testify that simply updating is not working – I’ve cleared all the object cache on the server as well as a hard reload / cache clear in my browser, we still get the 404.

    Thread Starter Oleg Komarovskyi

    (@komarovski)

    Duncmorley – thank you very much, that fixed my issue!

    Plugin Author Matt Keys

    (@mattkeys)

    Thank you everyone for your feedback. It looks like this bug was effecting anyone with an out of date version of this plugin, where even after updating to the latest version, the FontAwesome 5.x icons had already been cached in WordPress options, and continued to cause problems.

    I just released version 2.1.1 which double-checks that an incompatible version of FontAwesome isn’t already being cached, and if it is, directs it to re-cache the latest version of FontAwesome from the 4.x branch.

    Please let me know if anyone continues to see any issues on 2.1.1.

    Thanks,

    Matt Keys

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Field broken 404 error CDN 5.0.6’ is closed to new replies.