Warning: Creating default object from empty value in instagram_social_feed_cron() (line 169 of /home/bluflamingo/public_html/sites/all/modules/instagram_social_feed/instagram_social_feed.module).

Not sure were this is coming from. It worked well the first time. After deleting the old feed and adding a new one, got this error

Can someone please help?

Comments

benjaminkyta created an issue. See original summary.

mysticbovine’s picture

Hi. I'm getting this error as well.

Have you had any luck?

mysticbovine’s picture

Hi.

I added
if (!isset($instagram_feed)) $instagram_feed = new stdClass();

Just before
$instagram_feed->data = array();

At line 160 in /sites/all/modules/instagram_social_feed/instagram_social_feed.module)

I did a run and it downloaded my photos.

dasginganinja’s picture

Version: 7.x-1.5 » 7.x-1.x-dev

I'm experiencing this as well on 7.x-1.5 and it is still present in 7.x-1.x-dev.

This occurs when the json_decode returns NULL for the following line:

$instagram_feed = json_decode(instagram_social_feed_api_call($instagram_query));

For me, this when there is a bad request to Instagram. In my case I was trying to get feeds for a specific user, but my application was only in sandbox mode and didn't have access to fetch from anything other than my own photos.

simonscientist’s picture

Hi All, I am having the same issue. Mysticbovine's fix did not work for me. Any assistance would be greatly appreciated!