Close

Account

Documentation

Forum

Menu

Don't work instagram widget and instagram feed

  • Post count: 2
    UpnetArt
    March 21, 2018 at 1:06 am #29769

    Hi. In my site don’t work instagram widget and instagram feed. I insert my username of the public account and nothing see, only empty block and link to my account. If I enable wp_debug then I see an error “PHP Notice: Undefined index: user in ../jnews/class/Widget/Normal/Element/InstagramWidget.php on line 368” or “PHP Notice: Undefined index: user in ../plugins/jnews-instagram/class.jnews-instagram.php on line 137”. Can I fix it?

    Post count: 8314
    Adek
    March 21, 2018 at 1:03 pm #29793

    Hi UpnetArt,

    For the Instagram, it seems they have been updating their share data structure. Please try to replace the content of this file below:

    1. wp-content/themes/jnews/class/Widget/Normal/Element/InstagramWidget.php with this one https://pastebin.com/JJhZwUxU
    2. wp-content/plugins/jnews-instagram/class.jnews-instagram.php with this one https://pastebin.com/2FXXT6PA

    Let me know if it’s work or not on your side.

    Thank you

    Post count: 2
    UpnetArt
    March 21, 2018 at 3:11 pm #29797

    If I replace file:

    and after widget my site don’t load. I change 332 to $data_cache = array( and photo will be load, but I can see error Warning: Illegal string offset 'username' in ../wp-content/themes/jnews/class/Widget/Normal/Element/InstagramWidget.php on line 292
    Instagram timeline in footer dont load…

    Post count: 29
    fashionmecurvy
    March 21, 2018 at 4:02 pm #29798

    Had the same issue and figured you were working on a fix.

    I tried replacing the specified files and I can confirm that the widget now works for the sidebar, but not the header/footer.

    Post count: 8314
    Adek
    March 22, 2018 at 10:13 am #29821

    Hi All,

    Please try to replace the content of this file wp-content/plugins/jnews-instagram/jnews-instagram.php with this one here https://pastebin.com/iYLz604U

    @upnetart,

    Regarding this issue, can you please provide me login access to your website? so i can check it directly on my side what actually happens in there. You can send it here and don’t forget to check Set as private reply option below.

    Thank you

    Post count: 29
    fashionmecurvy
    March 22, 2018 at 4:06 pm #29837

    The header and footer Instagram loads on website but when you access wp-admin it threw this error:

    EDIT:

    So i removed the “module-” part from line 207 “class.jnews-instagram- (module-) option.php” since that file didn’t exist and I figured it was a typo on your part.

    This is what it looks like now:

    Now it now works for me without any errors. Thank you!

    Post count: 29
    fashionmecurvy
    March 22, 2018 at 4:26 pm #29841

    hmm, now it gives me this:

    Warning: call_user_func() expects parameter 1 to be a valid callback, class 'JNews_Footer_Instagram_Option' not found in /home/server/public_html/wp-content/themes/jnews/class/Module/ModuleManager.php on line 203

    Post count: 8314
    Adek
    March 22, 2018 at 5:06 pm #29846

    Hi fashionmecurvy,

    It seems previously I provide the wrong file version. I’m sorry for that. Please try to replace the content of this file below:

    1. wp-content/plugins/jnews-instagram/class.jnews-instagram.php with this one https://pastebin.com/2FXXT6PA
    2. wp-content/plugins/jnews-instagram/jnews-instagram.phpp with this one https://pastebin.com/iYLz604U

    Let me know if it’s work or not on your side.

    Thank you

    Post count: 2
    UpnetArt
    March 22, 2018 at 5:08 pm #29848

    Hi. My working file: https://pastebin.com/ZEVwuKDY based on https://pastebin.com/iYLz604U (error 500 in admin panel)
    I replace all class.jnews-instagram-module-view.php to class.jnews-instagram.php and class.jnews-instagram-module-option.php to class.jnews-instagram-option.php
    Thank all!

    Post count: 8314
    Adek
    March 22, 2018 at 5:24 pm #29850

    Hi UpnetArt,

    Glad to hear if you’ve been able to solve that problem and thanks for your sharing. This fix will be included in next theme update.

    Thank you

    Post count: 29
    fashionmecurvy
    March 23, 2018 at 4:10 pm #29885

    The feeds work now, however, they don’t seem to be updating alongside instagram. I have to increase the amount of columns to force an update and then decrease it again. This applies to the header/footer and the widget.

    Post count: 30
    fshih
    March 25, 2018 at 11:34 am #29905

    I’m experiencing this issue as well. The feed in the footer is not updating and hasn’t been for a while now.

    Post count: 8314
    Adek
    March 26, 2018 at 7:24 am #29907

    Hi All,

    For the Instagram Feed, there’s a cache for the feed and it will update automatically in 1 day. So you might need to change the expired time or disable it. To do that, please try to edit the following this files below:

    1. wordpress/jnews/class/Widget/Normal/Element/InstagramWidget.php jump into line 286 (or search) then adjust this code $expire = 60 * 60 * 24; // set expire in 1 day as your need.

    2. wp-content/plugins/jnews-instagram/class.jnews-instagram.php jump into line 199 (or search) then adjust this code $expire = 60 * 60 * 24; as your need.

    Let me know if you have further question.

    Thank you

    Post count: 30
    fshih
    March 26, 2018 at 11:44 am #29936

    Hi Adek!

    My footer hasn’t updated in 20 days (March 20) and I have cleared the cache manually several times. I’m not sure it’s a caching issue…

    Post count: 7
    tobekko
    March 26, 2018 at 12:27 pm #29938

    this is a life saver! thanks

You must be logged in to reply to this topic.