WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
Object has no method onCleanup (6 posts)

  1. IdanShechter
    Member
    Posted 1 year ago #

    I get the following error:

    ncaught TypeError: Object #<Object> has no method 'onCleanup'

    Installed the plugin on latest wordpress version, also using WP-Total Cache. I deleted all the cache and tried to use it with YouTube video like this:

    <a href="http://www.youtube.com/watch?v=2LHv1FPd1Ec" class="fancybox-youtube" rel="nofollow" >test</a>

    When I click the link it does nothing, but result in an error that I've shown you above. The script seems ot run because I am not being transfered to youtube when I click the link, but no popup with the video whatsoever.

    Need your help,

    thanks.

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. IdanShechter
    Member
    Posted 1 year ago #

    I think the problem is because the CSS is a php file that is generated dynamically and the caching plugins upload it and served it from a CDN because it is in the css section and it ignored the php extension. Is there away for the CSS to be a regular css file rather than a PHP one?

  3. NVene
    Member
    Posted 1 year ago #

    I have the same problem on my site as well.
    http://www.gooische-kookstudio.nl/popup
    When you click on "Vrijblijvende Offerte" easy fancybox should pop-up with a contact form.

    HTML for the page:
    Vrijblijvende Offerte
    <div class="fancybox-hidden" style="display: none;">
    <div id="contact_form_pop">[contact-form-7 id="47" title="offerte"]</div>
    </div>

    When i look at the javascriptconsole i get the following error:
    ncaught TypeError: Object #<Object> has no method 'onCleanup'

    The error occurs in:
    http://www.gooische-kookstudio.nl/wp-content/plugins/easy-fancybox/fancybox/jquery.fancybox-1.3.4.pack.js
    line 25

    I have no idea what this error means.
    I have installed easyfancybox on another site with the same theme and there it is working like a charm

  4. NVene
    Member
    Posted 1 year ago #

    Is there no one that can help with the questions?

  5. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hi guys, in both your cases (for various reasons) the stylesheet is not correctly loading which causes this error. Could you upgrade to the development version http://downloads.wordpress.org/plugin/easy-fancybox.zip and tell me if the problem persists?

  6. NVene
    Member
    Posted 1 year ago #

    RavanH you are the man :)
    it works like a charm now
    huge thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags