Skip to main content
Question

Using PHP-SDK, getting error 500

  • July 11, 2022
  • 3 replies
  • 317 views

Im tying to use the PHP-SDK to upload a greeting, I installed the SDK but Im getting error 500 every time I use any script. If I just have a basic PHP page, they load fine. Is there a way of testing the installation of the SDK?

3 replies

  • Author
  • Known Participant
  • July 11, 2022

I found the logs and this is the error

[11-Jul-2022 14:50:38 America/Los_Angeles] PHP Fatal error: Uncaught GuzzleHttpExceptionRequestException: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://platform.devtest.ringcentral.com/restapi/oauth/token in C:SNCphpvendorguzzlehttpguzzlesrcHandlerCurlFactory.php:211

how to a get around this problem?


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • July 12, 2022

  • Author
  • Known Participant
  • July 12, 2022

thanks, that worked, now I have a more basic PHP issue. Im not a pro at PHP, but Im trying. Im trying to get basic extension information working. I got this code from the 'try it now' I get no errors and a blank page, I assume I need more code to view the response.

require('vendor/autoload.php');
$rcsdk = new RingCentralSDKSDK($client_id, $client_secret, RingCentralSDKSDK::SERVER_SANDBOX);$platform = $rcsdk->platform();
$platform->login($Accountnumber, $extension, $pw);
$r = $platform->get("/restapi/v1.0/account/{$accountId}/extension", $queryParams);
// PROCESS RESPONSE

I tried to add this code , but it still comes back blank

foreach ($r as $value){ 
  echo "value " .$value . "
";
} 

any help would be much appreciated.