OAuth2_PHP icon indicating copy to clipboard operation
OAuth2_PHP copied to clipboard

OAuth2PHPExample.php

Open sharvan623 opened this issue 7 years ago • 1 comments

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

sharvan623 avatar Jun 04 '18 19:06 sharvan623

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

mwrathburn avatar May 06 '19 20:05 mwrathburn