Although chained display rules for the ACF don’t seem to be working under this plugin version. I have post type only page and user role administrator, but it still shows on every post unless I remove the administrator user role ‘location’ rule.
Yep Sorted!
Please do make this update available in your future version releases.
Hi Elliot
I regret that does not fix the issue.
Uncaught ReferenceError: acf is not defined
Please do feel free to login with details previously provided to check for yourself.
Glennyboy
Any update on this please?
Hi Elliot
Thanks for double-checking and I’m glad that you have now replicated the error.
Other than this issue it’s a really useful plugin that I’m using ongoing in a number of projects so hopefully you will be able to find a solution to this asap with a plugin update.
Thanks
Glennyboy
Hi
This is a script issue and there’s nothing wrong with the speed of the server that would influence loading in this way. This is the only error cross-sites that we get. Also please see developer comments from ThemePunch:-
“In general, what the ACF people have told you about a “JavaScript error snowball effect” is true. However, if other errors were occuring before their script runs (as per their claim), they would be visible in the browser’s debug console. To confirm this, open your browser’s debug console (I prefer Firebug with Firefox), click on the “Console” tab, then inside the slider’s admin, choose “Edit Slide”, then click on one of the slide’s main images to open up the media dialogue popup, then select an image and you’ll see the error appear in the console, and when this happens, it’s the only JavaScript error present (errors are highlighted in red). This essentially debunks the snowball theory.
If there were errors present coming directly from one of the slider’s JavaScript files (they’d be visible within the browser’s debug console), I could help you solve this. But because this isn’t the case, the best advice I can offer is to just disable the ACF plugin when using the slider’s admin.”
I’ve also tested in the same manner and this bears out.
Regards
Glennyboy
Hi Again
Any ideas?
Thanks
Glennyboy
Not sure if this is also similar:-
http://stackoverflow.com/questions/17648825/get-variable-out-of-anonymous-javascript-function
Can you perhaps make the ACF function ‘Global’ as per something similar here:-
Hi
To confirm I used your assigned login and wen to change the background image of the existing Revolution Slider. To my surprise it worked on first attempt. To confirm I exited the media upload and trued again, but on the second attempt it didn’t work again with the same error in the script debugger:-
[Error] ReferenceError: Can’t find variable: acf
(anonymous function) (undefined, line 4)
Can you please go back in and try to replicate.
I need your plugin for this site (launching now) and another critical site I’m also working on.
Many Thanks
Glennyboy
Hi
That is from the error codes that I have pasted, but I would ask that you take a look as well – I’m not a script debugger and other things are likely at play here. Theme Punch (the Revolution Slider authors) identify a different script error relating to ACF (and also think it is ACF as it works fine once ACF is deactivated).
They took a screen grab of the error but it reads:-
ReferenceError: ACF is not defined
….1,”rules”:[{“field”:field_529eDa36aee13″,”operator”:”==”,”value”:”Sale”}],”aloo …
That relates directly to an ACF Conditional Logic field.
Regards
Glennyboy
Seems it could well be ACF:-
event.returnValue is deprecated. Please use the standard event.preventDefault() instead. load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jq…:4
body.scrollLeft is deprecated in strict mode. Please use ‘documentElement.scrollLeft’ if in strict mode and ‘body.scrollLeft’ only if in quirks mode. load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jq…:304
body.scrollTop is deprecated in strict mode. Please use ‘documentElement.scrollTop’ if in strict mode and ‘body.scrollTop’ only if in quirks mode. load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jq…:304
Uncaught ReferenceError: acf is not defined
The last error in bold is flagged red.
Thanks
Glenn
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.