• Resolved Dan Claudiu G.

    (@dcgavril)


    Hello,

    When I have the Simple History plugin active on a multi-language website that uses WPML 4.0+ the plugin conflicts with WPML on the Admin dashboard and because of that the JetPack SiteStats doesn’t load anymore and in the console I get an error with WPML and Simple History Filter Dropin.

    I have disabled the plugin and everything is working fine again. I actually have multiple installations of WPML+SimpleHistory (+ different themes and plugins) and on all of them I have the same issue.

    The error in the console is:

    
    Uncaught Error: Option 'multiple' is not allowed for Select2 when attached to a <select> element.
        at String.<anonymous> (select2.min.js?ver=4.0.1:21)
        at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,underscore,wp-util,backbone,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-dialog,jquery-ui-progressbar&ver=99108b0eee01df769bfda350b1a29e11:2)
        at d.prepareOpts (select2.min.js?ver=4.0.1:21)
        at d.prepareOpts (select2.min.js?ver=4.0.1:22)
        at d.init (select2.min.js?ver=4.0.1:21)
        at HTMLSelectElement.<anonymous> (select2.min.js?ver=4.0.1:22)
        at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,underscore,wp-util,backbone,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-dialog,jquery-ui-progressbar&ver=99108b0eee01df769bfda350b1a29e11:2)
        at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortabl&load[]=e,underscore,wp-util,backbone,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-dialog,jquery-ui-progressbar&ver=99108b0eee01df769bfda350b1a29e11:2)
        at a.fn.init.a.fn.select2 (select2.min.js?ver=4.0.1:22)
        at enhanceSelects (SimpleHistoryFilterDropin.js?ver=2.23.1:154)
    
    /wp-content/plugins/sitepress-multilingual-cms/lib/select2/select2.min.js?ver=4.0.1
    

    Thanks for your help and for developping this plugin @eskapism

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author eskapism

    (@eskapism)

    Thanks for the bug report. I can confirm that I get the same message after installing WPML 4.

    I looked into the issue and this is caused by the fact that mulitple versions of Select2 is loaded on the page. Simple History uses the latest version of Select 2 (version 4.0.5) while WPML uses an old version from 2014 (select2 version 3.5.2). The new version of the plugin is incompatible with the old version.

    I think that using the latest version of the plugin is the correct approach (other big plugins like WooCommerce also uses the latest version) so I will not modify Simple History to fix this. I would reach out to WPML and ask them to up upgrade their version of Select2, to fix this issue (that they probably have with other plugins too).

    Thread Starter Dan Claudiu G.

    (@dcgavril)

    Thank you for your reply. I will also notify them about the issue and see if they can get it updated soon.

    Thanks again.

    Thread Starter Dan Claudiu G.

    (@dcgavril)

    Fixed by WPML team in v4.0.3.
    Thank you.

    Plugin Author eskapism

    (@eskapism)

    Great news! thank for the update regarding this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with WPML 4.0.1’ is closed to new replies.