jQuery Live function error breaking the CMS functions

Home Forums Legacy Support Support queries How-to & Troubleshooting jQuery Live function error breaking the CMS functions

Tagged: , , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #331149
    shazly
    Participant
    Hi, I am having many questions but I will start with glitches I am experiencing so far and would appreciate your help resolving them as soon as possible, thank you. Generally in CMS I am seeing Jquery console error related to .live() function, it's breaking different parts of the site, some of which are: 1) Adding a video embed to a unit, please see screenshot: https://ibb.co/TPsCcmP 2) All green buttons (such as "Add Social Icons") from the WPLMS section from left admin menu are not working, please find screenshots: https://ibb.co/6JSmKds https://ibb.co/ynNgfmt
    #331150
    shazly
    Participant
    I am also happy to share admin credentials if the cause of this error is un clear, thank you.
    #331177
    Diana
    Participant
    Point 1: https://docs.wplms.io/instructor-guide/instructor-guide#a-2-adding-video-type-unit Point 2: The issue is due to wordpress update. Install “Enable jquery migrate helper” plugin from plugins > add new and activate this plugin Then in wplms customizer plugin > wplms-custmizer.php Add this code
    
    add_action( 'admin_enqueue_scripts', 'enqueue_jquery_for_select2');
    function enqueue_jquery_for_select2(){
    	wp_enqueue_style('select2', 'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css' );
    	wp_enqueue_script('select2', 'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js', array('jquery') );
    }
    
    #332071
    shazly
    Participant
    Thanks, that fixed it, however, will there any permanent solution in the next releases?
    #332130
    Diana
    Participant
    This is actually a permanent solution. In the release we will only enqueue this script which is removed after wordpress update. It will not affect anything on your site so you can easily use this solution Closing this topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘jQuery Live function error breaking the CMS functions’ is closed to new replies.