• mpmchugh

    (@mpmchugh)


    Having a problem closing inline overlays. Unlike others previously reported, I do see the “X”, but when I click it, it disappears, and nothing else happens. The overlay is then stuck, and I need to reload the page. Oddly, there’s a video overlay on the same page that works fine.

    Getting this error in the console:

    [Error] ReferenceError: Can't find variable: obj
    	K (jquery.fancybox-1.3.7.min.js, line 30)
    	W (jquery.fancybox-1.3.7.min.js, line 29)
    	complete (jquery.min.js, line 4)
    	j (jquery.min.js, line 2)
    	fireWith (jquery.min.js, line 2)
    	i (jquery.min.js, line 4)
    	tick (jquery.min.js, line 4)

    The problem can be seen on this page:

    http://www.growinggenerations.com/about-us/staff/

    This seems to have happened after a recent update of something.

    https://wordpress.org/plugins/easy-fancybox/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, usually this problem occurs when an incompatible jQuery version (like 2.0+) is used. You’ll need to deactivate the script minification (W3TC?) and take a look in your page source code to find out more…

    Thread Starter mpmchugh

    (@mpmchugh)

    I’ve got magnification turned off on the beta I’m working on:
    http://beta.growinggenerations.com/about-us/staff/

    I’ve managed to get a single overlay to close, but the grouped fails after advancing to the next overlay, which then can’t be closed or escaped.

    Note, I’d previously not been using class=”fancybox-inline”, but just class=”fancybox”, which used to work (this was set up initially a few years back). Switching to “fancy box-inline” helped, but still having the group issue.

    I see in the source on about line 121, something’s loading these three lines:

    ` <script type=’text/javascript’ src=’//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js’></script>
    <script type=’text/javascript’>try{jQuery.noConflict();}catch(e){};</script>
    <script type=’text/javascript’ src=’http://beta.growinggenerations.com/wordpress/wp-includes/js/jquery/jquery-migrate.min.js’></script&gt;`

    Can’t tell what’s loading it. Is there a way to globally prevent other plugins from loading their own query?

    I cannot access the beta site without password but from what you describe it sounds like an issue with the current script that does not allow media other than images being grouped into a gallery because the prefetch function chokes on anything that’s not an image.

    There is a fix in the development version. You can try it by removing the current plugin and downloading https://downloads.wordpress.org/plugin/easy-fancybox.zip and installing the zip via the WordPress plugin Upload installer.

    About the external jQuery library being loaded: I have no idea who is doing that. Do you have the plugin “Use Google Libraries”? If so, then it’s fine: the WordPress included jQuery is not loaded but replaced by this one. But if the WP included jQuery is loaded too then it must be another plugin. You can only find out by switching all off…

    Thread Starter mpmchugh

    (@mpmchugh)

    Sorry about the password thing. I forgot to include it. The beta was pushed live though, and you can see the issue here: http://www.growinggenerations.com/about-us/staff/.

    I’ll give the dev version of the plugin a try.

    I think that other jQuery load was due to Speed Booster Pack. I didn’t realize that option was turned on.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't close overlays…’ is closed to new replies.