Home › Forums › Front-end Issues › Console Errors
Hello,
For some bizarre reason one of my sites keeps getting the following console errors, which seems related to ACF. I am on the latest version of WordPress and ACF…
Uncaught TypeError: Cannot read property 'mouse' of undefined
at draggable.min.js:11
at draggable.min.js:11
at draggable.min.js:11
slider.min.js:11 Uncaught TypeError: Cannot read property 'mouse' of undefined
at slider.min.js:11
at slider.min.js:11
at slider.min.js:11
iris.min.js?ver=1.0.7:4 Uncaught TypeError: a.widget is not a function
at iris.min.js?ver=1.0.7:4
at iris.min.js?ver=1.0.7:4
color-picker.min.js:1 Uncaught TypeError: a.widget is not a function
at color-picker.min.js:1
at color-picker.min.js:1
acf-input.min.js?ver=5.5.2:2 Uncaught TypeError: Cannot set property 'locales' of undefined
at Object.l10n_v3 (acf-input.min.js?ver=5.5.2:2)
at Object.ready (acf-input.min.js?ver=5.5.2:2)
at d (acf-input.min.js?ver=5.5.2:1)
at Object.i (acf-input.min.js?ver=5.5.2:1)
at Object.do_action (acf-input.min.js?ver=5.5.2:1)
at HTMLDocument.<anonymous> (acf-input.min.js?ver=5.5.2:1)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)
Please help, or advise!
Kind regards
UPDATE: This is when I insert the ACF Form script in the header
Hi @emangham
It seems there’s a conflict with your theme. Could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Sixteen) with only ACF activated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.
Thanks 🙂
Hello,
I have tried disabling every single plugin (except ACF Pro) and the issue still persists. I’m using a very basic set-up so I’m not sure it’s a theme issue either.
It happens when I add <?php acf_form_head(); ?> to the header
Thanks for the help
Kind regards
Appears to be related to jQuery, I had a script calling in the latest version of jQuery via CDN but that breaks ACF Form. If I don’t include it, there are no errors
Identify the Error. The error console will open. Select JavaScript and Errors from the two drop downs.
However, the ACF fields are not using this filter for the output, which means that, despite the fact that they can contain complex HTML structures and many site owners are using them to built their layouts, they won’t highlight the terms by default.
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Merry Christmas and Happy Holidays WordPress Family 🎄🤗
— Advanced Custom Fields (@wp_acf) December 24, 2020
© 2021 Advanced Custom Fields. Subscribe
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.