Easy FancyBox
Object has no method onCleanup (6 posts)

  1. IdanShechter
    Posted 3 years 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,



  2. IdanShechter
    Posted 3 years 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
    Posted 3 years ago #

    I have the same problem on my site as well.
    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>

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

    The error occurs in:
    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
    Posted 3 years ago #

    Is there no one that can help with the questions?

  5. RavanH
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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