kousik / simple-linkedinphp

Automatically exported from code.google.com/p/simple-linkedinphp
0 stars 0 forks source link

Undefined index: oauth on line 136 #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem:

1. Run demo.3.0.2.php
2. Click the grey button "Connect to LinkedIn".
3. LinkedIn shows screen: "Grant [YourProject] access to your LinkedIn Account 
[YourName]". Click the blue button: "Ok, I'll allow it".
4. Demo script return the error: Notice: Undefined index: oauth on line 136. 
LinkedIn->retrieveTokenAccess(): bad data passed, string type is required for 
$token, $secret and $verifier.

Original issue reported on code.google.com by barcl...@gmail.com on 29 May 2011 at 7:08

GoogleCodeExporter commented 8 years ago
The reported issue was caused by the following setting in my config file (to 
avoid loosing sessions between subdomains on the website):

ini_set("session.cookie_domain", ".mywebsite.com");

Commenting this out solved my problem, but can't explain why.

Original comment by barcl...@gmail.com on 30 May 2011 at 7:25

GoogleCodeExporter commented 8 years ago
Was the domain that you were attempting to run the demo script on the same 
domain as in ini_set (i.e. ".mywebsite.com")?

I plan on adding a check to the next version of the demo script that check for 
the existance of a valid session. 

Original comment by p...@fiftymission.net on 4 Jun 2011 at 7:22

GoogleCodeExporter commented 8 years ago
I was running my app on localhost. So no, the domain in ini_set was different 
than the domain I was testing from.

Original comment by barcl...@gmail.com on 6 Jun 2011 at 3:07

GoogleCodeExporter commented 8 years ago
Great, thanks for the update.

Original comment by p...@fiftymission.net on 7 Jun 2011 at 12:53

GoogleCodeExporter commented 8 years ago

Original comment by p...@fiftymission.net on 7 Jun 2011 at 12:53

GoogleCodeExporter commented 8 years ago

Original comment by p...@fiftymission.net on 11 Nov 2011 at 5:13

GoogleCodeExporter commented 8 years ago
Where is the config file?

Original comment by rfahr...@tidepool.co on 3 Aug 2012 at 8:25