If you are having a notice about writing the .mo files please read this doc

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Radu 2 months, 3 weeks ago.

Assigned support staff: Radu.

Author Posts
August 27, 2019 at 8:01 pm #4469569

brianG-6

Hello,

I'm trying to use Gravity Forms' Advanced Post Creation add-on, and I'm not able to because an error is being thrown from select2.min.js in the WPML plugin. The exact error is, 'Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element.' I saw a few support tickets from 2018 referencing this, and it was supposedly fixed. However, I have all of the latest versions of everything, and it's not working. The Gravity Forms plugin does work properly when I disable WPML, so I know that it's definitely related to that.

August 28, 2019 at 4:32 am #4471127

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hey Brian,

Thank you for reaching out the WPML support!

I checked this out and it seems that this issue with the Advanced Post Creation add-on is already on our list.

Our team has discovered that it is a JS library that creates conflict with gravity forms because gravity forms is also loading it.

While working on a permanent solution to the problem, they gave me a function that you need to insert in the functions.php file:

add_action('admin_enqueue_scripts', function(){
    if (wp_script_is('gform_advancedpostcreation_select2')) {
    add_action('wp_after_admin_bar_render', function(){
        wp_dequeue_script('wpml-select-2');
    }, 99);
    }
}, 99);

Remember to remove it if you disable Gravity Forms in the future, to avoid problems. Just give this a try and tell me if things are working better this time.

Thanks,
Radu

The topic ‘[Closed] Conflict with select2 js file’ is closed to new replies.