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.