Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
mysticbovine CreditAttribution: mysticbovine commentedHi. I'm getting this error as well.
Have you had any luck?
Comment #3
mysticbovine CreditAttribution: mysticbovine commentedHi.
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.
Comment #4
dasginganinjaI'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:
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.
Comment #5
simonscientist CreditAttribution: simonscientist as a volunteer commentedHi All, I am having the same issue. Mysticbovine's fix did not work for me. Any assistance would be greatly appreciated!