• Hello,

    I recently installed the YITH WooCommerce Affiliates plugin that works fine! However, the plugin is preventing the videos on my website to play. And when deactivating the plugin the video play again! Is there any manupulation I should do to fix this issue

    Thank you in advance for your support

    Below the messages from my chrome console, if this can help:

    8Mixed Content: The page at ‘<URL>’ was loaded over HTTPS, but requested an insecure element ‘<URL>’. This request was automatically upgraded to HTTPS, For more information see <URL>
    jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 3.3.2
    admin-bar-v2.js?ver=11.4-202246:3 Missing data from PHP (wpNotesArgs).
    (anonymous) @ admin-bar-v2.js?ver=11.4-202246:3
    mediaelement-and-player.min.js:12 Uncaught TypeError: Cannot set properties of undefined (setting ‘mejs’)
    at 7.3 (mediaelement-and-player.min.js:12:21595)
    at d (mediaelement-and-player.min.js:12:254)
    at mediaelement-and-player.min.js:12:305
    at 6.2 (mediaelement-and-player.min.js:12:12352)
    at d (mediaelement-and-player.min.js:12:254)
    at r (mediaelement-and-player.min.js:12:420)
    at mediaelement-and-player.min.js:12:437
    mediaelement-migrate.min.js:1 Uncaught ReferenceError: mejs is not defined
    at mediaelement-migrate.min.js:1:14
    at mediaelement-migrate.min.js:1:1174
    jquery.min.js:2 jQuery.Deferred exception: t.find(…).mediaelementplayer is not a function TypeError: t.find(…).mediaelementplayer is not a function
    at window.et_pb_video_section_init (https://ark-digitalassets.com/wp-content/themes/Divi/js/scripts.min.js?ver=4.16.0:2:86244)
    at HTMLDocument.<anonymous> (https://ark-digitalassets.com/wp-content/themes/Divi/js/scripts.min.js?ver=4.16.0:2:86564)
    at e (https://c0.wp.com/c/6.0.3/wp-includes/js/jquery/jquery.min.js:2:30038)
    at t (https://c0.wp.com/c/6.0.3/wp-includes/js/jquery/jquery.min.js:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js:2
    jquery.min.js:2 jQuery.Deferred exception: n(…).not(…).filter(…).mediaelementplayer is not a function TypeError: n(…).not(…).filter(…).mediaelementplayer is not a function
    at HTMLDocument.initialize (https://c0.wp.com/c/6.0.3/wp-includes/js/mediaelement/wp-mediaelement.min.js:1:834)
    at e (https://c0.wp.com/c/6.0.3/wp-includes/js/jquery/jquery.min.js:2:30038)
    at t (https://c0.wp.com/c/6.0.3/wp-includes/js/jquery/jquery.min.js:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js:2
    jquery.min.js:2 Uncaught TypeError: t.find(…).mediaelementplayer is not a function
    at window.et_pb_video_section_init (scripts.min.js?ver=4.16.0:2:86244)
    at HTMLDocument.<anonymous> (scripts.min.js?ver=4.16.0:2:86564)
    at e (jquery.min.js:2:30038)
    at t (jquery.min.js:2:30340)
    jquery.min.js:2 Uncaught TypeError: n(…).not(…).filter(…).mediaelementplayer is not a function
    at HTMLDocument.initialize (wp-mediaelement.min.js:1:834)
    at e (jquery.min.js:2:30038)
    at t (jquery.min.js:2:30340)
    ?v=2.0:16 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed:
    v @ ?v=2.0:16
    ?v=2.0:16 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed:
    v @ ?v=2.0:16
    D @ ?v=2.0:16
    O @ ?v=2.0:16
    ?v=2.0:16 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed:
    v @ ?v=2.0:16
    D @ ?v=2.0:16
    O @ ?v=2.0:16
    build.min.js?69ec0877ed8c70eb602c:2 [Violation] ‘visibilitychange’ handler took 244ms
    scripts.min.js?ver=4.16.0:2 [Violation] ‘setTimeout’ handler took 51ms
    ?v=2.0:16 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed:
    v @ ?v=2.0:16
    D @ ?v=2.0:16

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    Could you provide us with a link where these videos are played?

    We will be attentive to your response.

    Best regards.

    Thread Starter fouadbka

    (@fouadbka)

    Hi Juan
    On this version where YITH WooCommerce Affiliate plugin is deactivated you can see the video playing on the background
    https://www.ark-digitalassets.com/
    Regards

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    Try adding the following code to your active child theme’s functions.php file:

    if ( ! function_exists( 'yith_wcaf_dequeue_scripts_in_home' ) && class_exists( 'YITH_WCAF_Abstract_Admin_Panel' ) ) {
        function yith_wcaf_dequeue_scripts_in_home() {
            if ( is_home() ) {
                remove_action( 'admin_enqueue_scripts', array( YITH_WCAF_Abstract_Admin_Panel::class, 'enqueue_assets' ) );
            }
        }
        add_action( 'init', 'yith_wcaf_dequeue_scripts_in_home', 999 );
    }

    Let us know any news.

    Best regards.

    Thread Starter fouadbka

    (@fouadbka)

    Hi Juan,

    Unfortunately. Video still not playing!

    NB: I can share admin acces with you. Just let me know how I can share it

    Regards

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    Please replace the previous code with this new one and tell us if it works well for you:

    if ( ! function_exists( 'yith_wcaf_dequeue_custom' ) ) {
      function yith_wcaf_dequeue_custom() {
    
            $page = yith_wcaf_is_affiliate_dashboard_page();
          if ( ! is_account_page() || ! $page ) {
              wp_dequeue_script( 'yith-wcaf-shortcodes' );
          }
      }
      add_action( 'wp_enqueue_scripts', 'yith_wcaf_dequeue_custom', 100 );
    }

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘YITH WooCommerce Affiliate plugin causing issue on Video playback’ is closed to new replies.