• Resolved marger

    (@marger)


    Hi,

    I’ve been using this plugin for 1.5 to 2 years. Today I found out the feed no longer loads, but the problem may have started occurring somewhere in the past few months.

    I tried the tips in https://smashballoon.com/instagram-feed/support/faq/ and all I can turn up is a console error concerning the feed itself (with caching plugins disabled):

    
    JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js:2:542
    SyntaxError: JSON.parse: end of data while reading object contents at line 1 column 2 of the JSON data[Learn More] sb-instagram.min.js:12:132
    sbi_init/</<
    http://howwonderfullifeis.com/assets/plugins/instagram-feed/js/sb-instagram.min.js:12:132
    each
    http://howwonderfullifeis.com/wp-includes/js/jquery/jquery.js:2:2879
    each
    http://howwonderfullifeis.com/wp-includes/js/jquery/jquery.js:2:844
    sbi_init/<
    http://howwonderfullifeis.com/assets/plugins/instagram-feed/js/sb-instagram.min.js:12:100
    sbiCreatePage
    http://howwonderfullifeis.com/assets/plugins/instagram-feed/js/sb-instagram.min.js:12:216
    sbi_init
    http://howwonderfullifeis.com/assets/plugins/instagram-feed/js/sb-instagram.min.js:12:47
    <anonymous>
    http://howwonderfullifeis.com/assets/plugins/instagram-feed/js/sb-instagram.min.js:71:66
    i
    http://howwonderfullifeis.com/wp-includes/js/jquery/jquery.js:2:27444
    fireWith
    http://howwonderfullifeis.com/wp-includes/js/jquery/jquery.js:2:28213
    ready
    http://howwonderfullifeis.com/wp-includes/js/jquery/jquery.js:2:30004
    K
    http://howwonderfullifeis.com/wp-includes/js/jquery/jquery.js:2:30366
    
    

    I’m not filtering any posts from the feed and just the default shortcode. Also I never changed any settings after it ran fine before. Can you find out how I can fix the feed?

    • This topic was modified 7 years, 5 months ago by marger.
    • This topic was modified 7 years, 5 months ago by Jan Dembowski.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey marger,

    Sorry for the issue here! Could you try disabling Autoptomize to see if it makes a difference? Even if it doesn’t, can you leave it disabled and let me know so I can take another look?

    – Craig

    Thread Starter marger

    (@marger)

    Hi Craig,

    thanks for your reply. Autoptimize is now disabled. For me it doesn’t make a difference, the output posted above was from my tests with autoptimize disabled.

    pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL.

    hope this helps future debugging,
    frank (ao dev)

    Plugin Contributor Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey again marger,

    Thanks for doing this! After taking a closer look I’m seeing that there is extra html added to your footer widget area #3 that is causing a problem: https://snag.gy/bpyXm8.jpg

    Try removing the following from footer widget #3 (you can replace it with a shortcode if you’d like to add a 2nd feed)

    <div id="sb_instagram" class="sbi sbi_disable_mobile sbi_col_3 sbi_small" style="width:100%; padding-bottom: 14px; " data-id="1333862419" data-num="6" data-res="auto" data-cols="3" data-options="{"sortby": "none", "headercolor": "", "imagepadding": "7"}"><div id="sbi_load"><div class="sbi_follow_btn"><a href="https://www.instagram.com/how.wonderful.life.is/" style="" target="_blank"><i class="fa fa-instagram"></i>Follow on Instagram</a></div></div></div>

    Thanks,

    Craig

    Thread Starter marger

    (@marger)

    Awesome, that did the trick! I wasn’t even aware of that extra HTML so this would’ve taken me ages to track down myself. Thanks so much Craig!

    And thanks to Frank for that pro-tip on Autoptimize, it might come in handy in the future.

    • This reply was modified 7 years, 5 months ago by marger.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Feed not loading with SyntaxError: JSON.parse’ is closed to new replies.