Open roboweaver opened 7 years ago
Can you add some more info like versions of WordPress and Yoast SEO? On what page does that happen? Under some special conditions and so on...
WordPress 4.8.2 (running MultiSite unfortunately). Yoast 5.3.3 On an edit post with some ACF fields on it.
What ACF Version? Any other plugins active?
I'm having similar javascript issues, but only in backend. More specifically if I'm using a repeater with a conditional field. It seems to work fine when I just put one "row" in and then save it. But if I try to add two right off the bat, it breaks with these errors. I'm using Wordpress 4.8.2, ACF Pro 5.6.3, ACF Content Analysis for Yoast SEO 2.0.0, Yoast SEO Premium 5.5.1. Hope this helps!
Uncaught TypeError: Cannot set property 'replacement' of undefined
at replacevars.js:48
at Function.m.each.m.forEach (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:93)
at App.updateReplaceVars (replacevars.js:44)
at d (acf-input.min.js?ver=5.6.3:1)
at Object.i (acf-input.min.js?ver=5.6.3:1)
at Object.do_action (acf-input.min.js?ver=5.6.3:1)
at acf-input.min.js?ver=5.6.3:1
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=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:93)
at App.updateReplaceVars (replacevars.js:44)
at d (acf-input.min.js?ver=5.6.3:1)
at Object.i (acf-input.min.js?ver=5.6.3:1)
at Object.do_action (acf-input.min.js?ver=5.6.3:1)
at Object.remove_el (acf-input.min.js?ver=5.6.3:1)
at acf-input.min.js?ver=5.6.3:3
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=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:93)
at App.updateReplaceVars (replacevars.js:44)
at d (acf-input.min.js?ver=5.6.3:1)
at Object.i (acf-input.min.js?ver=5.6.3:1)
at Object.do_action (acf-input.min.js?ver=5.6.3:1)
at HTMLInputElement.<anonymous> (acf-input.min.js?ver=5.6.3:1)
at HTMLDocument.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:3)
at HTMLDocument.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:3)
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=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:93)
at App.updateReplaceVars (replacevars.js:44)
at d (acf-input.min.js?ver=5.6.3:1)
at Object.i (acf-input.min.js?ver=5.6.3:1)
at Object.do_action (acf-input.min.js?ver=5.6.3:1)
at HTMLSelectElement.<anonymous> (acf-input.min.js?ver=5.6.3:1)
at HTMLDocument.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:3)
at HTMLDocument.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:3)
at Object.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,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.2:3)
@overwine The issue you're having is something different and already known. See #60 for details.
@roboweaver I just had a new idea what this could be - maybe it is related to #80.
Is it possible that you had ACF Pro active at some point but then downgraded to the free version? If you're running ACF 4 (the free version) can you run this
YoastACFAnalysisConfig.acfVersion
in the browser console and tell me what it returns?
@roboweaver Any news on this, especially regarding my question above?
Seeing these errors in the plugin: