• hennell

    (@hennell)


    I’ve been using Fancy Box on a site for a while, but it now seems to be ‘crashing’ after moving to a second item. The exact process is:

    1. Click on item
    2. Content (another page) is loaded in fancy box fine.
    3. Click arrow to load a second page. (Page loads fine)
    4. Click arrow to load third page.
    5. Arrows disappear, close button disappears. Can’t esc the pop up, close the pop up or do anything but refresh the page.

    At first I thought it might be something related with a caching plugin, but testing on a local site (with no caching) shows the same problem.

    Not sure if this is something related to this plugin or a conflict with something else, but if anyone has any ideas or tips of what to investigate I’d be grateful!

Viewing 1 replies (of 1 total)
  • Thread Starter hennell

    (@hennell)

    Been doing some testing on a local site, and found replacing the file jquery.fancybox.js with the version from 3.0.10 means I can go click through the items without freezing fine.

    I’ve tried running through this file with Chromes inspect/debugging tools, but haven’t really worked out where the problem is. It appears to be requesting the third page (via ajax) fine, but I can’t work out where it’s actually stopping.

    Chrome does seem to object to the use of the undefined obj reference in(obj).hasClass(“image”) (lines 315 and 320 of chromes pretty print js file) – but that error seems to happen on the first and second fancybox load when the popup seems to be working.

    Happy to explore further if anyone has any advice or a Dev would like to know if something works. For now I’ll be rolling the non-crashing 3.0.10

Viewing 1 replies (of 1 total)
  • The topic ‘Crash after moving to second/third item’ is closed to new replies.