WordPress.org

Ready to get started?Download WordPress

Forums

Photonic Gallery for Flickr, Picasa, SmugMug, 500px, Zenfolio and Instagram
Instagram Problem - No Data Returned. Unknown Error. (7 posts)

  1. thestoryshop
    Member
    Posted 1 year ago #

    I keep getting an error when I try to load the page where I am using Photonic to populate using Instagram. The message reads:

    No Data Returned. Unknown Error.

    Any ideas as to why this is happening and how I can get rid of it?

    http://wordpress.org/extend/plugins/photonic/

  2. thestoryshop
    Member
    Posted 1 year ago #

    Here is the page that is having the error. Sometimes it works... sometimes it does not. Please see if you can repeat the error.

    http://wearemadisoncounty.org/weare/photo-gallery/

  3. Casper
    Member
    Posted 1 year ago #

    Same issue here.
    The photos are shown just fine, when I work locally. However, on my test server they never render (not even occasionally).

    I've tried to change the redirect URI in the Instagram app setup, but to no avail.

    I do see the photos on your site, @thestoryshop.

  4. Casper
    Member
    Posted 1 year ago #

    I found a solution for my scenario.
    It was related to how the plugin fetches the images from Instagram.

    If I set the decompress option to false in the call to wp_remote_request in the Photonic_Instagram_Processor class, it works fine.

    I guess it's related to the configuration of the server on my (shared) host.

    So, if anyone is feeling adventurous, go edit the file here /extensions/Photonic_Instagram_Processor.php and change the code starting at line 233 from this:

    $response = wp_remote_request($query, array(
      'sslverify' => false,
    ));

    to this:

    $response = wp_remote_request($query, array(
      'sslverify' => false,
      'decompress' => false
    ));

    You will have to do this anytime you update the plugin.

    Would be nice if the plugin author could chime in, and tell us if this could/should be added permanently to the plugin (I'll gladly submit a Pull Request on GitHub!).

  5. Sayontan Sinha
    Member
    Plugin Author

    Posted 1 year ago #

    Interesting. Thanks for the research. I will add it to the plugin for the next release.

  6. Casper
    Member
    Posted 1 year ago #

    Nice, thanks!
    I should note that I'm not 100% certain whether this is a one-size-fits-all solution, but it seems safe enough to add it to the plugin.

    According to the docs, it should work fine. Note that the option was added in 2.8, in case you aim to support older WP versions.

    Thanks again for a great plugin.

  7. Sayontan Sinha
    Member
    Plugin Author

    Posted 1 year ago #

    I will add this as an option, so that users can turn it on or off depending on whether they need it.

    The plugin requires at least WP 3.3, hence there should be no issues with using the code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.