• Resolved patriciava

    (@patriciava)


    My page was not displaying background videos (using DIVI builder) and through disabling plugins one by one, I’ve found it to be YITH Affiliates. Not sure how or why this would be affecting background videos but… here we are. Hoping someone can assist.

    Ah, maybe interesting to know – when enabled, the page is throwing this error in the Dev console:

    Uncaught TypeError: Cannot set properties of undefined (setting ‘mejs’)
    at Object. (mediaelement-and-player.min.js?ver=4.2.17:12:21595)
    at d (mediaelement-and-player.min.js?ver=4.2.17:12:254)
    at mediaelement-and-player.min.js?ver=4.2.17:12:305
    at Object. (mediaelement-and-player.min.js?ver=4.2.17:12:12352)
    at d (mediaelement-and-player.min.js?ver=4.2.17:12:254)
    at r (mediaelement-and-player.min.js?ver=4.2.17:12:420)
    at mediaelement-and-player.min.js?ver=4.2.17:12:437

    • This topic was modified 4 months, 2 weeks ago by patriciava.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter patriciava

    (@patriciava)

    Well, guess I fixed it myself by dequeuing the yith_wcaf_shortcode that somehow conflicted with the mediaplayer.

    If anyone has the same issue, here is the code:


    add_action( 'wp_enqueue_scripts', function () {

    if ( ! function_exists( 'yith_wcaf_is_affiliate_dashboard_page' ) ) {
    return;
    }

    $is_affiliate_dashboard = yith_wcaf_is_affiliate_dashboard_page();


    if ( $is_affiliate_dashboard || is_account_page() ) {
    return;
    }

    wp_dequeue_script( 'yith-wcaf-shortcodes' );
    wp_deregister_script( 'yith-wcaf-shortcodes' );

    }, 100 );
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.