fancybox 2.1.4 – Uncaught TypeError: Cannot read property 'helpers' of undefined-Collection of common programming errors
Having some issues with a website that I am working on I can’t seem to get fancybox to work correctly testing it with a YouTube clip.
Here is my script file. Using 2.1.4 with jQuery 1.9
script.js
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('.flexslider').flexslider({
animation: "slide"
});
$j('.fancybox-media').fancybox({
openEffect : 'none',
closeEffect : 'none',
helpers : {
media : {}
}
});
});
the flexslider works just fine however the fancybox-media is having issues. when i click the link it just opens the link instead of opening media file in a fancybox window.
Inside the chrome console it is saying
Uncaught TypeError: Cannot read property 'helpers' of undefined jquery.fancybox-media.js:88
(anonymous function) jquery.fancybox-media.js:88
(anonymous function) jquery.fancybox-media.js:196
The link is defined as:
Watch This Video
Also if you want to look at the site in development it can be found at www.miems.co
Any ideas please let me know. Sincerely, David