Home › Forums › Add-ons › Options Page › Uncaught ReferenceError: acf is not defined › Reply To: Uncaught ReferenceError: acf is not defined
Hi @redocs
I have just logged in and can confirm the issue is not specific to the options page, but throughout your website!
You can see from the attached screenshot that the JS error occurs on all edit pages.
I have looked through the source code and can confirm that the correct JS files are being loaded, and that the acf object does exist.
The issue must be that the inline script tag (which sets data such as acf.post_id) is running before the acf JS file (input.min.js) is loaded.
I can’t explain why this is the case, but perhaps your install has some custom code / plugin code which is modifying the jQuery that is used? This could explain why the inline script is running early because it is wrapped in jQuery, so that it fires once jQuery has loaded.
I hope this helps you track down the issue.
Thanks
E
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.