Hello,
Getting the following JS error:
TypeError: Attempted to assign to readonly property.
/wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/select2_locale_et.js?ver=3.5.2 line 9
As it says locale_et (Estonian) I assume it has something to do with translations. I have Polylang and Loco Translate installed. Any advice?
Hi @krishaamer
Could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Fifteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.
Thanks!
hello same issue conflict with one plugin Event Calendar from Modern Tribe
Maybe you got same conflict with another plugin, many used select2
Hope it can help for investigation
Regards
Dimitri
Answer from Modern tribe
Sorry for the trouble here!
My hunch is that both plugins are calling the same select2 library from two different sources and those two calls are conflicts with one another. The Events Calendar uses select2 across most of the plugin so it’s definitely necessary, but I wonder if you could try dequeuing ACF’s version when events are present.
The calendar’s copy of the script is located here:
/the-events-calendar/vendor/select2/select2.min.js
And it’s corresponding handle is ‘select2’.
Sorry again for the conflict here, but I hope this at least helps get a resolution started so both plugins work smoothly together.
Thanks,
Geoff
Hi @dimitrilongo
I am sorry for the delayed response.
I believe the latest version of ACF checks if the current page has enqueued another select2 script or not. Do you still have this issue with the latest version?
Thanks!