I am fairly new to developing with Drupal, and new to this forum, so any help would be greatly appreciated.
While trying to authorize SalesForce with a local install I get the following two errors with when going to the oauth_callback.
Note: I have not included the entire path to save space but the reference points are accurate for the doc and line the error references.
Notice: Undefined property: stdClass::$data in Salesforce->requestToken() (line 338 of salesforce.inc)
SalesforceException: Error opening socket ssl://login.salesforce.com:443 in Salesforce->requestToken() (line 342 of salesforce.inc)
Local Environment: Mac OS Mavericks with XAMPP 5.6.3, SSL enabled on port 443 in httpd-vhosts.conf with certs created using OpenSSL.
Extension: php_openssl.dll uncommented in php.ini
Also to note the Drupal install was pulled from a live site that has SF module enabled and working.
I created a new connected app with the proper oauth_callback to the local site which is https://secure.localhost/salesforce/oauth_callback
I have both HTTPS and HTTP enabled, I have noticed that in the Status Report when using HTTPS I do get a HTTP Failure error in the status report.
The request url from salesforce is passing a code EX: https://secure.localhost/salesforce/oauth_callback?code=aPrxMZkm7lCkgfR3...
With a Status code of 500 Service unavailable.
I have looked all over online and on this site, and can't seem to find anything that works. I have tried a few patches to the common.inc file, but none of them seemed to work.
Like I said any help would be greatly appreciated, I am just not sure if it is Drupal, Salesforce, or my local setup.
https://secure.localhost/and you're using the right auth keys of that app?https://secure.localhost/salesforce/oauth_callback(without any query), what page do you get (or which error)?