Support » Plugin: PowerPack Addons for Elementor » Instagram Feed

  • It looks like there’s an error with the Instagram feed that will break the plugin. In pp-instagram.js, _processData is parsing the Instagram page and for the JSON config object. It is looking for either data.entry_data.ProfilePage or data.entry_data.TagPage. However, I’m seeing cases where neither of these are being returned, but instead, entry_data.LoginAndSignupPage is being returned. This causes data[0] to error due to data being set to undefined. I’m not sure if this impacts everyone, but wanted to point out that such a case exists to some of our users.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Nirbhay Singh

    (@nirbhay18)

    Hi @jinnesco ,

    Can you share link to the page with the issue?

    I’m getting the same issue:

    Uncaught TypeError: Cannot read property ‘0’ of undefined at PPInstagramFeed._processData (pp-instagram.js:69) at XMLHttpRequest.xhr.onreadystatechange (pp-instagram.js:54)

    Thread Starter Jeffrey

    (@jinnesco)

    @nirbhay18 sorry I missed the notification for this. Unfortunately we do not have it on a live page as we’d fixed the issue before launching. In pp-instagram.js, we just added a validation for DATA. Subsequent references to DATA seems to have proper validation in place as it does not throw any errors downstream.

    Original:
    data = data[0].graphql.user || data[0].graphql.hashtag;

    Updated:

    if (data.length) {
    	data = data[0].graphql.user || data[0].graphql.hashtag;
    }
    • This reply was modified 4 months, 2 weeks ago by Jeffrey.
    • This reply was modified 4 months, 2 weeks ago by Jeffrey.
    Plugin Support Vipul Chandel

    (@vipulc2)

    Hello @jinnesco

    PowerPack uses a web parsing-based method to fetch the photos from Instagram.com.
    This method relies on the ability to access the https://instagram.com/ site and fetch the images from the public profiles.

    Recently Instagram has changed the access method, and now it is mandatory in some regions to login to https://instagram.com to view and get data from the public profiles. Due to this the logic responsible for fetching the photos is not working and hence the feed is not showing any photos.

    I am sorry for the inconvenience caused.

    For more info please visit the documentation: https://wpbeaveraddons.com/docs/powerpack/modules/instagram-feed/instagram-feed-not-working/

    Plugin Support Vipul Chandel

    (@vipulc2)

    Hello @jinnesco

    We have released an update for PowerPack for Elementor. This update uses the new Instagram API. You can update to the latest version and follow the doc here – https://powerpackelements.com/docs/elementor-instagram-widget-setup/

    If you have any questions please feel free to ask.

    It seems to be the same issue for Beaver Builder. Is there a fix for this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.