• Resolved devalexdev

    (@devalexdev)


    Hi,

    Yoast loads up lodash twice and breaks ACF Fields loading content

    Php: 7.2
    Wordpress: 5.4.2
    Yoast SEO: 14.6.1

    As of Yoast Version 14.6.1, I’m getting this console error that’s related to lodash getting loaded twice. The double lodash loading is screwing up my ACF field pages and I can’t edit pages. (To be precise, ACF fields with Wysiwyg Editor and media upload was giving an error, not displaying the content and giving saying there was no content when I added text to the editor field).

    Uncaught TypeError: _ is undefined

    That error links to, wp-admin/plugins.php (This occurred on the main dashboard)

    <script src='https://mysite.com/wp-includes/js/dist/vendor/lodash.min.js'></script>
    <script>
    window.lodash = _.noConflict();
    window.lodash = _.noConflict();
    </script>

    The fix was to deactivate Yoast SEO and then there was no more double window.lodash = _.noConflict(); loading in wp-admin, which meant Yoast was the cause of that double lodash line. I’ve searched through the wp-admin/plugins.php and can’t find any lodash line anymore after disabling Yoast SEO.

    Is this issue just mine or can anyone else confirm the same errors? Can this be fixed?

    • This topic was modified 4 years, 3 months ago by devalexdev.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Double loading Lodash [Version 14.6.1]’ is closed to new replies.