• Resolved offisapup

    (@offisapup)


    The Instagram feed code in 2.9.7 is throwing warnings.

    Notice: Undefined offset 0 in <...>/wp-content/plugins/feed-them-social/feeds/instagram/class-fts-instagram-feed.php on line 715 and Trying to get property 'username' of non-object on the same row.

    This is probably because it refers to $insta_data which is set in a commented-out block on rows 659 to 696, marked spencer_testing … Commenting out the elsif on rows 715 to 717 gets the function back — thus fixed in the linked page.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author slickremix

    (@slickremix)

    Thanks for reporting the notice ?? When you say it was not working, what specifically was not working? And lastly what is the shortcode you are using? ( please omit any access tokens in shortcode )

    Spencer

    Thread Starter offisapup

    (@offisapup)

    It was only showing the warnings … No Insta stuff ??

    The shortcode: <?php echo do_shortcode('[fts_instagram instagram_id=<...> access_token=<...> pics_count=6 type=basic super_gallery=yes columns=3 force_columns=no space_between_photos=1px icon_size=65px hide_date_likes_comments=no]'); ?>

    Plugin Author slickremix

    (@slickremix)

    Thanks for the follow up and example code. I took a look at the code and the feed still works ok on my end with it commented out. Possibly your access token was not working at that moment in time or you just needed to empty the cache in our plugin?

    Thread Starter offisapup

    (@offisapup)

    The access token was working (as far as the FTS admin page knew, at least …). And the site does not have any caching turned on …

    The warnings are quite specific — they led me straight to a non-functional row in the code, and when I commented that row out, the plugin started working.

    Are you sure the code *you* are running is the same I downloaded from https://www.ads-software.com/plugins/feed-them-social/?

    Plugin Author slickremix

    (@slickremix)

    I just double checked to be sure by downloading the plugin from https://www.ads-software.com/plugins/feed-them-social/ got my id/access token and used the options in your shortcode and it worked like a charm. It might be worth downloading the plugin again and see if it still works for you without changing any code.

    Thread Starter offisapup

    (@offisapup)

    OK, I yield ??

    You’re right, uncommenting the elsif works now … So it was something cached, somewhere, after all … I did chck that the rest is completely identical to the download.

    Thanks for your patience. You might want to look into giving a more descriptive error on an expired token, tho ??

    Thread Starter offisapup

    (@offisapup)

    Oops, should have marked it Resolved, too …

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Instagram feed throwing warnings, and not working’ is closed to new replies.