{"id":6275,"date":"2014-04-15T08:20:05","date_gmt":"2014-04-15T08:20:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/15\/fancybox-2-1-4-uncaught-typeerror-cannot-read-property-helpers-of-undefined-collection-of-common-programming-errors-2\/"},"modified":"2014-04-15T08:20:05","modified_gmt":"2014-04-15T08:20:05","slug":"fancybox-2-1-4-uncaught-typeerror-cannot-read-property-helpers-of-undefined-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/15\/fancybox-2-1-4-uncaught-typeerror-cannot-read-property-helpers-of-undefined-collection-of-common-programming-errors-2\/","title":{"rendered":"fancybox 2.1.4 &#8211; Uncaught TypeError: Cannot read property &#39;helpers&#39; of undefined-Collection of common programming errors"},"content":{"rendered":"<p>Having some issues with a website that I am working on I can&#8217;t seem to get fancybox to work correctly testing it with a YouTube clip.<\/p>\n<p>Here is my script file. Using 2.1.4 with jQuery 1.9<\/p>\n<p>script.js<\/p>\n<pre><code>var $j = jQuery.noConflict();\n\n$j(document).ready(function(){\n\n    $j('.flexslider').flexslider({\n    animation: \"slide\"\n  });\n\n    $j('.fancybox-media').fancybox({\n        openEffect  : 'none',\n        closeEffect : 'none',\n        helpers : {\n            media : {}\n        }\n    });\n\n});\n<\/code><\/pre>\n<p>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.<\/p>\n<p>Inside the chrome console it is saying<\/p>\n<pre><code>Uncaught TypeError: Cannot read property 'helpers' of undefined jquery.fancybox-media.js:88\n(anonymous function) jquery.fancybox-media.js:88\n(anonymous function) jquery.fancybox-media.js:196\n<\/code><\/pre>\n<p>The link is defined as:<\/p>\n<h2><code>Watch This Video<\/code><\/h2>\n<pre>\n<\/pre>\n<p><code>Also if you want to look at the site in development it can be found at www.miems.co<\/code><\/p>\n<p><code>Any ideas please let me know. Sincerely, David<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having some issues with a website that I am working on I can&#8217;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(&#8216;.flexslider&#8217;).flexslider({ animation: &#8220;slide&#8221; }); $j(&#8216;.fancybox-media&#8217;).fancybox({ openEffect : &#8216;none&#8217;, closeEffect : &#8216;none&#8217;, helpers : [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6275","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6275"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6275\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}