Closed (duplicate)
Project:
Drupagram
Version:
7.x-1.1
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2012 at 02:21 UTC
Updated:
26 Oct 2016 at 20:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jpsimon commentedJust to see, I tried registering another application, and put in the new keys. Same error =\
Comment #2
rmontero commentedI can't seem to reproduce that error. Could you post some screenshots perhaps?
Comment #3
jpsimon commentedSigned in as admin i do the following:
go to: mysite.com/user
click: edit
click : instagram accounts
click: add account
- this brings me to the instagram site where i click 'yes' to authorize the app
click: yes
- brings me back to my site with the following error (attached screenshot)
drupal 7.4, using drupagram 7.x-1.1 (stable version)
Comment #4
jpsimon commentedAside from enabling oauth, is there any setting up one needs to do with it to get this working? On the user page there is an "authorization" menu for oauth where you add a consumer/application... it wasn't mentioned in the install instructions for drupgram so i left all of that alone.
Comment #5
Itmman commentedsame problem
Comment #6
davidknicker commentedsame here, anyone find a fix for this?
Comment #7
15dk51 commentedSame problem. It gave a fetal error.
Comment #8
mstrelan commentedSame problem here. Could it be that it's running on a local URL?
Comment #9
rmontero commentedSorry for the late response mstrelan dkiscool davidzk Itmman jpsimon
Did you see any reports on the Status Report ( /admin/reports/status )
This can happen when your PHP does not have the CURL library installed.
Check your php.ini settings to make sure you are loading the CURL library.
Comment #10
mstrelan commentedexception 'InstagramException' with message 'Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?' in E:\www\drupal-7.14\sites\all\modules\drupagram\drupagram.lib.php:408 Stack trace: #0 E:\www\drupal-7.14\sites\all\modules\drupagram\drupagram.lib.php(560): Instagram->request('https://api.ins...', Array, 'POST', false) #1 E:\www\drupal-7.14\sites\all\modules\drupagram\drupagram.lib.php(544): InstagramOAuth->auth_request('https://api.ins...', Array, 'POST', false) #2 E:\www\drupal-7.14\sites\all\modules\drupagram\drupagram.pages.inc(379): InstagramOAuth->get_access_token('1c89deb5a7a1426...', 'http://drupal-7...') #3 E:\www\drupal-7.14\includes\form.inc(1460): drupagram_oauth_callback_form_validate(Array, Array) #4 E:\www\drupal-7.14\includes\form.inc(1400): form_execute_handlers('validate', Array, Array) #5 E:\www\drupal-7.14\includes\form.inc(1133): _form_validate(Array, Array, 'drupagram_oauth...') #6 E:\www\drupal-7.14\includes\form.inc(848): drupal_validate_form('drupagram_oauth...', Array, Array) #7 E:\www\drupal-7.14\includes\form.inc(706): drupal_process_form('drupagram_oauth...', Array, Array) #8 E:\www\drupal-7.14\sites\all\modules\drupagram\drupagram.pages.inc(334): drupal_form_submit('drupagram_oauth...', Array) #9 [internal function]: drupagram_oauth_callback(Array, Array) #10 E:\www\drupal-7.14\includes\form.inc(800): call_user_func_array('drupagram_oauth...', Array) #11 E:\www\drupal-7.14\includes\form.inc(341): drupal_retrieve_form('drupagram_oauth...', Array) #12 E:\www\drupal-7.14\includes\form.inc(131): drupal_build_form('drupagram_oauth...', Array) #13 [internal function]: drupal_get_form('drupagram_oauth...') #14 E:\www\drupal-7.14\includes\menu.inc(516): call_user_func_array('drupal_get_form', Array) #15 E:\www\drupal-7.14\index.php(21): menu_execute_active_handler() #16 {main}Comment #11
rmontero commentedmstrelan this seems to be a Windows only error that has to do with your local environment's configuration not being able to support SSL.
Unfortunately Instagram uses https as the communication protocol for all of their endpoints.
Here is what I found while googling your problem:
Make sure your php_openssl.dll permissions are correct.
Add C:\PHP\ext to the Windows path
Add the libeay32.dll and ssleay32.dll to C:\WINDOWS\system32\inetsrv
Reboot the server
I found these things to try on this page: http://php.net/manual/en/install.windows.extensions.php
Hope this helps resolve your issue.
Comment #12
jaspher commentedEnabling the php_openssl extension will fix this.
Comment #13
jaspher commentedSorry did not mean to re-open. Closing as works as designed.
Comment #14
junwei.maven commentedI'm getting similiar error log in mac localhost.
exception 'InstagramException' with message 'BAD REQUEST' in /Applications/MAMP/htdocs/me/sites/all/modules/others/drupagram/drupagram.lib.php:409 Stack trace: #0 /Applications/MAMP/htdocs/me/sites/all/modules/others/drupagram/drupagram.lib.php(561): Instagram->request('https://api.ins...', Array, 'POST', false) #1 /Applications/MAMP/htdocs/me/sites/all/modules/others/drupagram/drupagram.lib.php(545): InstagramOAuth-........
php_openssl and curl are enable as shown in phpinfo.
Any advise?
Comment #15
Siegricho commentedI'm asking people to get here from a duplicate post, I see there are some solutions posted but none has helped me so far Curl is enabled and I'm still getting the same error. Thanks
Comment #16
karopka commentedsame here
Comment #17
chered commenteddoes anyone has any fix for this. my curl is also activated but getting this same error.
Comment #18
amogiz commentedsame problem here
Comment #19
amogiz commentedAny help would be very appreciate.
I spent hours and hours trying to make it work.
Thanx
Comment #20
bensey commentedHaving the same issue, everything seems in order.
Tried all the patches and solutions discussed in this and several other active issues, but no cigar.
Comment #21
mihaic commentedPlease see this issue here:
https://www.drupal.org/node/2484333
Patch #12 applied against latest dev version solved the problem.
You might need to remove the Instagram account and re-add.
Comment #22
nchase commentedThe Patch #12 @ https://www.drupal.org/node/2484333 against latest dev didn't help. Still getting the invalid oauth token. On the same site the Twitter module using oauth is working.
Comment #23
sthomen commentedThe patch in #12 did not help for me, but I traced the problem (that I had) down and this patch against the dev version made everything work for me. It might work with the stable release as well.
Comment #24
daniel korte@sthomen Are you sure you implemented the patch in #12 correctly? Because your above code snippet is essentially what #12 does, but in a way that allows the function to be more versatile than hardcoding in the headers.
Comment #25
sthomen commentedYou're right, they're functionally the same. My apologies, Daniel. I must have gotten confused wich code I was actually running.
Comment #26
daniel korteNo worries! I just wanted to make sure nothing was wrong with that patch. Thanks.
Comment #27
daniel korteDuplicate of #2484333: exception 'InstagramException' with message 'BAD REQUEST'.