• Resolved Jason

    (@hisc1ay)


    Hi Cais,

    I’m using WP 4.7.3 and NextGEN Version 2.2.1, and when I load the gallery I get an error in my JS console (in Chrome and IE) saying that jQuery(…).nggShowSlideshow is not a function.

    I did some searching and noticed a StackOverflow answer that suggested maybe wp_footer isn’t being called. This is a custom theme, so that seemed reasonable. It’s definitely being called, and I definitely see the chunk of JS files particular to NextGEN showing up, including the one that defines nggShowSlideshow.

    I believe I’ve determined that it’s a theme-related problem, because when I view the page I have my gallery on using a Twenty-Seventeen theme live preview, the gallery works like it’s supposed to. I haven’t full-on switched to a new theme to see it there because I’m afraid of losing my theme’s settings, and currently I don’t have a staging site to try this on.

    Any suggestions on what to look at as next steps?

    For reference, this is the page that I’m working on: https://morganwebert.com/bali-retreat/

    Thanks a bunch!
    -jason

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @hisc1ay

    Although I am seeing a JavaScript error in my browser console that may be related (although not the same reference you are using) the only thing I can suggest at the moment (without a more thorough theme check) is to try manually removing the NextGEN Gallery plugin (delete the /nextgen-gallery/ folder from under /wp-content/plugins/ and all of its contents) then re-install the plugin via Plugins > Add New … Search for “NextGEN Gallery”

    It may be a case that the plugin installation / update may have been corrupted in some fashion during that process and could be creating this issue.

    As it is, I am not familiar with the theme framework you are using so I cannot speak to how it would perform and/or retain its setting although I suspect that all would be fine if you temporarily switch to a default WordPress Twenty series themes but you are more than free to touch base with the theme author to confirm this.

    Thanks!

    – Cais.

    • This reply was modified 7 years, 8 months ago by photocrati.
    Thread Starter Jason

    (@hisc1ay)

    Thanks; I’ll try it. The JS error isn’t there because for now we’ve removed the gallery in favor of static images.

    I’ll come back here if it is still eluding me later. ??

    -jason

    Thread Starter Jason

    (@hisc1ay)

    I’ve tried what you suggested – I removed the plugin and reinstalled it, and that didn’t fix anything.

    Switching to the standard WP theme got me the gallery, but i still don’t understand what the conflict is. The theme I’m using uses the same version of jQuery, and the nggallery js is clearly being referenced in the footer. I can open the file and see the nggShowSlideshow function being defined, yet when I try to call it in the JavaScript console, it’s “undefined”.

    I don’t want to take up too much of your time because my client hasn’t paid for the pro version of the plugin, so I do appreciate the help you’ve given so far. If you’d like to see the JS error and what the page renders like, I’ve made a new page with the gallery on it: https://www.morganwebert.com/jason-gallery-tests/

    Thanks again,
    -jason

    Plugin Contributor photocrati

    (@photocrati)

    @hisc1ay – It could just be in the way the theme and NextGEN Gallery enqueue scripts, you might try adding the following code snippet to see if it helps to sort this out:

    /** Javascript Conflicts? */
    add_filter( 'run_ngg_resource_manager', '__return_false' );

    Thanks!

    – Cais.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“nggShowSlideshow is not a function” error WP 4.7.3’ is closed to new replies.