- This topic has 2 replies, 2 voices, and was last updated 1 year, 8 months ago by .
On a client site we use:
Meta Box 5.2.2
MB Relationships 1.7.0
The Events Calendar 4.9.10
When editing an event (classic editor), the select dropdown in the relationship meta box fails to load posts (no entries). This is the error in the browser console:
Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element. 2 select2.min.js:21:18425 prepareOpts http://localhost/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js:21 each jQuery prepareOpts http://localhost/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js:21 prepareOpts http://localhost/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js:22 init http://localhost/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js:21 select2 http://localhost/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js:22 jQuery 2 select2 http://localhost/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js:22 transform http://localhost/wp-content/plugins/meta-box/js/select-advanced.js:92 jQuery 8 clone http://localhost/wp-content/plugins/meta-box/js/clone.js:154 addClone http://localhost/wp-content/plugins/meta-box/js/clone.js:196 jQuery 2
On other post edit screens (classic editor), the relationship drop down works fine. I think the Select2 script gets loaded by both The Events Calendar and Meta Box and this is could be the cause of the error?
- You must be logged in to reply to this topic.