Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2PHPExample.php #12

Open
sharvan623 opened this issue Jun 4, 2018 · 1 comment
Open

OAuth2PHPExample.php #12

sharvan623 opened this issue Jun 4, 2018 · 1 comment

Comments

@sharvan623
Copy link

Fatal error: Uncaught exception 'Exception' with message 'error setting certificate verify locations: CAfile: ./Certificate/cacert.pem CApath: none' in C:\xampp\htdocs\OAuth2_PHP\OAuth_2\Client.php:186 Stack trace: #0 C:\xampp\htdocs\OAuth2_PHP\OAuth_2\Client.php(86): Client->executeRequest('https://oauth.p...', Array, Array, 'POST') #1 C:\xampp\htdocs\OAuth2_PHP\OAuth_2\OAuth2PHPExample.php(48): Client->getAccessToken('https://oauth.p...', 'Q011528139602Ph...', 'https://d880952...', 'authorization_c...') #2 {main} thrown in C:\xampp\htdocs\OAuth2_PHP\OAuth_2\Client.php on line 186

@mwrathburn
Copy link

Comment out Line 164 of Client.php:
//curl_setopt($ch, CURLOPT_CAINFO, $this->certificate_file);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants