Open sharvan623 opened 6 years ago
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
Comment out Line 164 of Client.php: //curl_setopt($ch, CURLOPT_CAINFO, $this->certificate_file);
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