AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
877 stars 182 forks source link

[ACF PRO 5.7.0-beta1] "acf.get_fields is not a function" #29

Open krishaamer opened 6 years ago

krishaamer commented 6 years ago

While running acf_form on the frontend:

VM2581 input.js:484 Uncaught TypeError: acf.get_fields is not a function at VM2581 input.js:484 at _runHook (VM2576 acf-input.js:2299) at Object.doAction (VM2576 acf-input.js:2125) at Object.acf.doAction (VM2576 acf-input.js:819) at HTMLDocument.<anonymous> (VM2576 acf-input.js:2045) at i (VM2555 jquery-1.12.4.min.js:2) at Object.fireWith [as resolveWith] (VM2555 jquery-1.12.4.min.js:2) at Function.ready (VM2555 jquery-1.12.4.min.js:2) at HTMLDocument.K (VM2555 jquery-1.12.4.min.js:2)

elliotcondon commented 6 years ago

Hi @krishaamer

Thanks for the bug report.

Yes, I need to add in compatibility for the existing acf.get_fields() function.

The core plugin shouldn't be calling this function, so it is most likely that you have a 3rd party ACF plugin active - is this possible?

if so, please let me know which one, so that I can test this too.

elliotcondon commented 6 years ago

Hi @krishaamer

I've just performed some testing and added in the missing acf.get_fields() function. Everything looks to be working for me, can you please test this out?

Thanks Elliot