Don't know what photo id caused this problem, but I'm
not convinced it was anyone in particular - most of the
time this call works.
Anways, photos_getInfo() fails with this error:
<b>Notice</b>: Undefined index: photo in
<b>/var/www/localhost/htdocs/php_flickr/phpFlickr.php</b>
on line <b>940</b>
Here's the code just for quick reference:
/*
http://www.flickr.com/services/api/flickr.photos.getInfo.html
*/
$this->request("flickr.photos.getInfo",
array("photo_id"=>$photo_id, "secret"=>$secret));
$this->parse_response();
$result = $this->parsed_response['rsp']['photo'];
//<-- line 940
It seems to be a time out problem or response problem
from flickr maybe? Either way, more graceful error
handling would be awesome.
Thanks!
Logged In: NO
Same problem with getSizes:
<b>Warning</b>: Invalid argument supplied for foreach() in
<b>/var/www/localhost/htdocs/php_flickr/phpFlickr.php</b> on
line <b>1010</b><br />
<br />
<b>Notice</b>: Undefined variable: result in
<b>/var/www/localhost/htdocs/php_flickr/phpFlickr.php</b> on
line <b>1013</b><br />