Title: JavaScript error &#8211; Videos do not play
Last modified: January 18, 2021

---

# JavaScript error – Videos do not play

 *  Resolved [mbaierl](https://wordpress.org/support/users/mbaierl/)
 * (@mbaierl)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-videos-do-not-play/)
 * The video gallery is shown, but if I click on any video nothing happens.
    Reason
   being a JavaScript error:
 *     ```
       Uncaught TypeError: Cannot read property 'replace' of undefined
           at HTMLDivElement.<anonymous> (ytprefs.min.js?ver=13.4.1.2:formatted:248)
           at HTMLDivElement.dispatch (jquery.js?ver=1.12.4-wp:3)
           at HTMLDivElement.r.handle (jquery.js?ver=1.12.4-wp:3)
       ```
   
 * The line is:
    var l = f.data(“ep-gallerysrc”).replace(“GALLERYVIDEOID”, g);
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-videos-do-not-play%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-videos-do-not-play/#post-13936177)
 * Hi,
 * Are you using Borlabs or Complianz’s Cookie plugins? If so, they are not compatible
   with the plugin. Our plugin already has its own privacy options for YouTube, 
   so you can try and see if you can disable operation on YouTube embeds in your
   Cookie plugin.
 *  Thread Starter [mbaierl](https://wordpress.org/support/users/mbaierl/)
 * (@mbaierl)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-videos-do-not-play/#post-13936761)
 * You are right, Borlabs was the issue.
    Since we are also using Videos in other
   parts of the website we can’t rely purely on your compliance settings… Any ideas
   on how to solve this issue?
 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-videos-do-not-play/#post-14023076)
 * One option is to perhaps nudge Borlabs to add the flexibility to disable their
   functionality on certain (kinds of) content.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘JavaScript error – Videos do not play’ is closed to new replies.

 * ![](https://ps.w.org/youtube-embed-plus/assets/icon-256x256.png?rev=2165403)
 * [Embed Plus for YouTube Gallery, Livestream and Lazy Loading with Facades](https://wordpress.org/plugins/youtube-embed-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-embed-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-embed-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-embed-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-embed-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-embed-plus/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [embedplus](https://wordpress.org/support/users/embedplus/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-videos-do-not-play/#post-14023076)
 * Status: resolved