Hi,
In the "manage settings" area for Instagram Social Feeds (admin/config/services/instagram_social_feed/settings) when I click "Click here to authenticate via Instagram and create an access token", I get an error messages such as:

Notice: Trying to get property of non-object in instagram_social_feed_settings() (line 124 of C:\webapps\...\sites\all\modules\instagram_social_feed\instagram_social_feed.pages.inc).

Yet, I also get a message that "Instagram authentication successful". If I then switch to the "Moderation" or "Status" tabs, I see a message "API Key not properly established. Please see the Manage Settings tab."

(See my screen shots attached).

I am running Drupal on WAMP on a Windows machine with cURL PHP extension enabled and working. PHP version is 5.5.12. cURL version is 7.36.0.

If I install onto a Linux machine, everything works fine. PHP version 5.3.29 and cURL 7.30.0.

Any ideas as to why I can't run it on the WAMP server? Any help greatly appreciated.

Thanks!

CommentFileSizeAuthor
instagram_feeds2.png16.42 KBcdavine
instagram_feeds1.png81.89 KBcdavine
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cdavine created an issue. See original summary.

Vlad Stratulat’s picture

This is how I solved it.
After line 116 (instagram_social_feed\instagram_social_feed.pages.inc) I've added curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);.

    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POST, count($fields));
    curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
   +curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
ktch_my’s picture

Having the same issue.
Looks like the field is not recognizable.
I've tried to install older version back to 7.x-1.1.
All versions gives the same error message when try to get the access code.
The access code is generated but no fields can be used to store it.

ktch_my’s picture

Version: 7.x-1.3 » 7.x-1.5
pierre-nono’s picture

I had exaclty the same problem, and #2 /Vlad solution works just fine for me.