• Resolved zhart

    (@zhart)


    After installation of “ACF Content Analysis for Yoast SEO” conditional logic in ACF was broken. Now I have installed ACF 5.6.1 and conditional logic seems doesn’t work (or at least doesn’t work in some cases). When I deacticvate “ACF Content Analysis for Yoast SEO” then conditional logic begins work again, so “ACF Content Analysis for Yoast SEO” is culprit.

    Some details:
    When I set up to show a particular field for certain values of another field, this particular field is never displayed (for any values of the second field). If I set up to show a particular field when the value of another field is not equal to some given value, then my particular field is always displayed (also for any values of the second field).
    An interesting detail: sometimes (in rare cases) conditional logic still works. But in most cases in exactly the same situation (exactly with the same fields) it does not work.
    Again, if I deactivate your plugin, all works fine.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m experiencing the same issue. The error from the console looks like this:

    replacevars.js:48 Uncaught TypeError: Cannot set property 'replacement' of undefined
        at replacevars.js:48
        at Function.m.each.m.forEach (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,wp-util,plupload,jquery-ui-resizable&ver=4.8.1:93)
        at App.updateReplaceVars (replacevars.js:44)
        at d (acf-input.min.js?ver=5.6.2:1)
        at Object.i (acf-input.min.js?ver=5.6.2:1)
        at Object.do_action (acf-input.min.js?ver=5.6.2:1)
        at HTMLInputElement.<anonymous> (acf-input.min.js?ver=5.6.2:1)
        at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,wp-util,plupload,jquery-ui-resizable&ver=4.8.1:3)
        at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,wp-util,plupload,jquery-ui-resizable&ver=4.8.1:3)
    (anonymous) @ replacevars.js:48
    m.each.m.forEach @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,wp-util,plupload,jquery-ui-resizable&ver=4.8.1:93
    updateReplaceVars @ replacevars.js:44
    d @ acf-input.min.js?ver=5.6.2:1
    i @ acf-input.min.js?ver=5.6.2:1
    do_action @ acf-input.min.js?ver=5.6.2:1
    (anonymous) @ acf-input.min.js?ver=5.6.2:1
    dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,wp-util,plupload,jquery-ui-resizable&ver=4.8.1:3
    r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,wp-util,plupload,jquery-ui-resizable&ver=4.8.1:3
    

    Also experiencing the same error. One notable quirk for me is the conditional content is working fine in a published post, and is only throwing the above error when trying to create a new post.

    Plugin Contributor Thomas Kräftner

    (@kraftner)

    Thanks for reporting, we have identified the issue and are working on a fix.

    For now you don’t really have any other option than downgrading to 1.2.1.

    Plugin Contributor Thomas Kräftner

    (@kraftner)

    Thanks for your patience: This is now fixed in version 2.0.1 which we have just released. If you have any further issues please open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin broke the Conditional Logic on ACF’ is closed to new replies.