Invalid argument supplied for foreach()
Closed this issue · 3 comments
I am currently getting the following error massage for your plugin:
"Warning: Invalid argument supplied for foreach() in /home/abhotel/public_html/widgets/flickr-widget.php on line 66"
Line 66 contains the following code:
foreach ($photos['photoset']['photo'] as $photo):
$info = $f->photos_getInfo($photo['id']);
Ive already updated the flicker api links to https and still getting this error message. It was working last week before Flicker made changes to a https only enviroment. Will I need to changes my api key or is something else causing the problem?
Got it working!
guy, how to fix that ? I have same problem
I too have the same problem, I changed all according http https indicates the link they provided, but that did not fix the problem, still throwing the same error:
Invalid argument supplied for foreach() in C:\AppServ...... on line 51:
foreach ($photos['photoset']['photo'] as $photo)