NextGEN Gallery
Slideshow forever loading - JSON issue. (2 posts)

  1. Arkadia
    Posted 3 years ago #

    Hi there, I have NGG 1.9.3 installed. My slideshows are continously loading.

    The console reports -> "Uncaught TypeError: Cannot read property 'stat' of null"

    Which is refering to this code in ngg.slideshow.js :

    jQuery.getJSON(url, function(r){
       if (r.stat == "ok"){

    The issue is that the "r" variable is null instead of the json data.

    I've checked the "url" variable, which resolves to "http://www.amgreeneconstruction.com/index.php?callback=json&api_key=true&format=json&method=gallery&id=5" and I've ran it through 'http://jsonformatter.curiousconcept.com/' and I see that the url is returning all the json code needed(all the gallery data).. I just don't get why it's not working via ngg.

    The jQuery.getJSON function is successful, it's just returning null data.

    Any ideas?


  2. Nexu
    Posted 3 years ago #

    Bumping this thread.

    Having the exact same issue without finding any solution to this or what's causing it. Albeit after some inspection i noticed the /index.php?callback=json url can be retrieved with full (and apparently valid) json data when using an Unix command line tool wget.
    Also upon inspection with FireBug it does appear the Content-Type is "application/json; charset=UTF-8" which seems correct. But nothing appears in the browser (even if it could tell me the data was 11k in size).
    The URL in question is: http://www.radiozeeland.com/?callback=jsonp&api_key=true&format=json&method=gallery&id=8

    An example of a correct JSON callback reply should been like: http://photography.christophassauer.de/index.php?callback=json&api_key=true&format=json&method=gallery&id=9

    WordPress 3.3.2 + ngg.slideshow.min.js?ver=1.06

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic