I’m seeing an JS error “Cannot set property ‘en_US’ of undefined” when I view the widget backend page (/wp-admin/widgets.php). The error makes the widget page unusable. I have confirmed it exists when using ACF Pro v5.3.9 and v22.214.171.124. Older versions are not affected.
After troubleshooting I identified a potential plugin conflict as the issue goes away when I deactivate the following two plugins: The Events Calendar v4.2 and The Events Calendar PRO v4.2. Here is a screenshot of the error with
define( 'SCRIPT_DEBUG', true ); enabled: https://cloudup.com/ckDfsNjyKro. Here is the specific line: https://cloudup.com/cQGZJ1TTsEj.
Thanks for the bug report.
I’ll do some testing with these plugins and have a solution for you shortly.
I discovered this same error on another one of my sites with a different set of plugin conflicts. The really strange thing is that this one is working with The Events Calendar v4.2 and The Events Calendar PRO v4.2 installed and activated however does not work with SearchWP v2.6 active.
For this site, the error is appearing on an ACF option page. This particular option page only has 2 fields as shown here: https://cloudup.com/c17oDtvAqNT. With the js error: https://cloudup.com/cuXmYGVQjBa the date select field does not display any selectable dates. For now I’ve downgraded from ACF v126.96.36.199 to v188.8.131.52 as a workaround.
I have the same error on my post editor, media library, widgets editor, and user editor pages. We are not using The Events Calendar, but here’s a list of our plugins:
| advanced-custom-fields-pro | inactive | none | 184.108.40.206 | | advanced-excerpt | inactive | none | 4.2.3 | | bluetrait-event-viewer | active | none | 2.0.2 | | contact-form-7 | active | available | 4.0.3 | | custom-post-type-ui | active | none | 1.3.5 | | debug-bar | inactive | none | 0.8.4 | | debug-bar-extender | inactive | none | 0.5 | | debug-bar-template-trace | inactive | none | 0.1.1 | | disable-comments | inactive | none | 1.5 | | formtools | inactive | none | 1.1.0 | | gravityforms | active | none | 1.9.19 | | gravityforms-hubspot | active | none | 2.3.3 | | hubspot | active | none | 1.9.4 | | post-type-library | active | none | 2.0 | | nextgen-gallery | inactive | available | 2.0.66 | | regenerate-thumbnails | active | none | 2.2.6 | | rewrite-rules-inspector | active | none | 1.2.1 | | simple-page-ordering | inactive | none | 2.2.4 | | term-menu-order | active | none | 0.4 | | user-role-editor | active | none | 4.25.2 | | wordpress-importer | active | none | 0.6.1 | | wordpress-seo | active | available | 220.127.116.11 | | wp-migrate-db-pro | active | none | 1.6 | | wp-migrate-db-pro-media-files | active | none | 1.4.4 |
Also happening to me on a general “options” page after updating to v18.104.22.168 from v22.214.171.124. Running both The Events Calendar (v4.2) and SearchWP (v2.6.1) — in my case, deactivating SearchWP seems to resolve the issue. Deactivating The Events Calendar appears to have no effect.
Thanks for your help raising this issue.
I believe I have found and fixed the problem.
If possible, please login to your online account and click on the ‘See all versions’ link next to your ACF PRO license. On the following page you will see a new version
126.96.36.199-RC1 available for download.
After replacing the plugin files, can you please let me know if this fixes the issue?
Please also remember to hard refresh your browser to clear cached JS.
Just tried out 188.8.131.52-RC1 on both of my affected sites and can confirmed everything is now working. Thanks!
That’s great news! Thanks for testing!
Just installed 184.108.40.206-RC1 on the development version of our affected site, and the issue seems to be resolved. Yay!
You must be logged in to reply to this topic.
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!
ACF wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.