Support

Account

Home Forums ACF PRO Cannot set property 'en_US' of undefined

Solved

Cannot set property 'en_US' of undefined

  • 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 v5.3.9.1. 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.

  • Hi @anchordev

    Thanks for the bug report.

    I’ll do some testing with these plugins and have a solution for you shortly.

    Thanks
    Elliot

  • 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 v5.3.9.1 to v5.3.8.1 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      | 5.3.9.1 |
    | 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 | 1.5.3.3 |
    | 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 v5.3.9.1 from v5.3.2.1. 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!

  • Hi guys

    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 5.3.9.2-RC1 available for download.
    https://www.advancedcustomfields.com/my-account/

    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.

    Thanks
    Elliot

  • Just tried out 5.3.9.2-RC1 on both of my affected sites and can confirmed everything is now working. Thanks!

  • Hi @anchordev

    That’s great news! Thanks for testing!

  • Hi Elliot,

    Just installed 5.3.9.2-RC1 on the development version of our affected site, and the issue seems to be resolved. Yay!

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Cannot set property 'en_US' of undefined’ is closed to new replies.