archetyped / simple-lightbox-extensions

Feedback & Support for Simple Lightbox Extensions
https://archetyped.com/tools/simple-lightbox/
2 stars 3 forks source link

[Video Handler] Javascript Error #10

Closed woodcipher closed 10 years ago

woodcipher commented 10 years ago

Add-on name & version: Simple Lightbox: Video Handler - Version 0.1.0 SLB version: 2.3.1 URL of page exhibiting bug: Local Other plugins installed: Advanced Custom Fields (4.3.8); Akismet; WordPress Importer (0.6.1); Wordpress Popular Posts Browser(s) with issue: Chrome/FF/Saf

Hi - I've just installed the SLB Video Add-On but cannot seem to get it to work. When clicking a link to a YouTube or Vimeo video, I see the dark overlay and loading animation appear, but nothing happens beyond this. In my console I see the following error message:

TypeError: Cannot read property 'html' of null http://local.blog/wp-content/plugins/slb-handler-video/content-handlers/video/handler.video.js?ver=2.3.1:50&host=local.blog

It looks like the error is occurring here in the source:

handler.video.js?ver=2.3.1

49  //Content
50  var out = $(data.html);

I have tried using the same video used in the example on the SLB Video Add-On page. Here is what the rendered link looks like on my page:

<a href="https://vimeo.com/31289594" data-slb-group="44" data-slb-active="1">Simple Lightbox Sample Video</a>

I have confirmed that I am using the proper version of jQuery (1.11.0). I have also deactivated, reactivated, and reset SLB and the video add-on. SLB is working great for images. Please let me know if you need any more information. Thank you for the outstanding plugin and for your help.

archetyped commented 10 years ago

Hi, the data object is validated prior to reaching the line where you're seeing the error, so the error message is very strange.

Please post this on a live server and I will take a closer look.

woodcipher commented 10 years ago

Thank you for your response - we have decided to hold off on adding lightbox functionality for videos on our production site. Please feel free to close this issue.