WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] Incompatibility between jQuery 1.9.1 and FancyBox 1.3.4 (8 posts)

  1. thewebists
    Member
    Posted 1 year ago #

    I'm seeing the follow js errors when loading the plugin on my site:
    TypeError: b.browser is undefined
    TypeError: $(...).fancybox is not a function

    I gather this is a compatibility problem between jQuery 1.9.1 and FancyBox 1.3.4.

    http://stackoverflow.com/questions/14344289/fancybox-doesnt-work-with-jquery-v1-9-0-f-browser-is-undefined-cannot-read

    Are there any plans to release an updated version of this plugin to use the new FancyBox 2.1.x? That has patches to fix this issue.

    Regards,
    Andy @ The Webists

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

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hi webists, I'm not allowed to include fancyBox2 in a plugin hosted on WordPress Extend because fancyBox2 does not use the GPL or similar licence. But yea, I'm planning on moving to fancyBox2 by way of allowing users to include it after downloading the script themselves.

    In the mean time, I need to find a reliable way of supporting FancyBox 1.3.4 with jQuery 1.9+

    Could you test the following for me, please? Your help will be much appreciated.

    Append this line to your themes header.php just before the closing </head> tag:

    <script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>

    Please tell me if you still get errors...

  3. rbngzlv
    Member
    Posted 1 year ago #

    Hi RavanH,

    In my case, adding your code, the error is still there.

    Thanks for your work on the plugin.

    Rubén.

  4. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Rubén, can you share a link so I can take a look?

  5. rbngzlv
    Member
    Posted 1 year ago #

    Hi RavanH,

    I solved the problem downloading the patched file from stackoverflow post in first post.

    But, I have broke again for your testing.

    I filled a contact form in your site with site url.

  6. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Rubén, I have not received any contact form submit from you but if you say the patch by JFK (that's the answer you are referring to, I suppose) on http://stackoverflow.com/questions/14344289/fancybox-doesnt-work-with-jquery-v1-9-0-f-browser-is-undefined-cannot-read works, I'll consider it for the next release. Of course I'll have to test it with other jQuery versions as well :)

  7. Devin Walker
    Member
    Posted 1 year ago #

    I've gone in and manually patched the plugin's version with the link provided. It would be great to have this working in the next version w/ 1.9.1 - I love Fancybox and your plugin makes it a breeze to install but I can't have it breaking other scripts :[

  8. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Devin, the next release will have either the patched version or will be using the jquery.migrate.js extension.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.