I have two websites populating galleries via a simple FlickrAPI call with JSON and jQuery. They've been chugging along happily for the last couple years, but they both started throwing an error last week, causing gallery population to fail.
I've isolated the problem to being related to a call to photosets.getInfo.photo.description
. Other requests are working fine: requesting an image with the tag 'featured', text descriptions, all working as expected.
Here's the explicit call:
$.getJSON('http://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=' + apiKey + '&photo_id=' + rPhoto.id + ' &format=json&jsoncallback=?', function(data){
var PhotoDescription=data.photo.description._content.replace(/\n/g, "<br />");
...
}
and the error reads:
Uncaught TypeError: Cannot read property 'description' of undefined
As this problem popped up on multiple sites at once, I think I can assume there's been some change on the Flickr side that I need to accommodate somehow, but I can't find any documentation for such a change, or anyone else who's experiencing the same issue.
Thanks so much in advance for any hints or help! Stacey