I'm having issues running WHMCS on a local server(AMPPS). I keep getting error 60s on the admin page when I am able to access it, despite having added a certificate(cacert.pem fromhttps://curl.haxx.se/docs/caextract.html) to the same folder as the php.ini folder with AMPPS and setting up as the certificate(this worked for a while but something else seems to be the issue).
Secondly ,I'm attempting to use WHMCS in order to make a CURL request to an API that uses OAuth. I cannot get the access token with the code(yes I have tried multiple codes) I am attempting to use, and keep getting blank responses, with response times of -1, and yet I get a blank response. Curiously the SSL verification status is 1, despite the certificate issue. Both of these issues have never affected me on another machine and no one else on the internet have had them simultaneously, they seem to be indicative of a larger issue. The CURL request is to a specific API(freeagent), using a helper class in which no one else has reported the issue, and other cURL requests have been successful using my server.
Here's the code for the call(I'm using type 'oauth'):
Question
Daniel Pointon
I'm having issues running WHMCS on a local server(AMPPS). I keep getting error 60s on the admin page when I am able to access it, despite having added a certificate(cacert.pem from https://curl.haxx.se/docs/caextract.html) to the same folder as the php.ini folder with AMPPS and setting up as the certificate(this worked for a while but something else seems to be the issue).
Secondly ,I'm attempting to use WHMCS in order to make a CURL request to an API that uses OAuth. I cannot get the access token with the code(yes I have tried multiple codes) I am attempting to use, and keep getting blank responses, with response times of -1, and yet I get a blank response. Curiously the SSL verification status is 1, despite the certificate issue. Both of these issues have never affected me on another machine and no one else on the internet have had them simultaneously, they seem to be indicative of a larger issue. The CURL request is to a specific API(freeagent), using a helper class in which no one else has reported the issue, and other cURL requests have been successful using my server.
Here's the code for the call(I'm using type 'oauth'):
}
The whole function returns blank, and the information for the CURL request is as follows:
{ [ "url" ] => string(51) "https://api.sandbox.freeagent.com/v2/token_endpoint" [ "content_type" ] => NULL [ "http_code" ] => int(0) [ "header_size" ] => int(0) [ "request_size" ] => int(0) [ "filetime" ] => int(-1) [ "ssl_verify_result" ] => int(1) [ "redirect_count" ] => int(0) [ "total_time" ] => float(0.05031) [ "namelookup_time" ] => float(0.029338) [ "connect_time" ] => float(0.050294) [ "pretransfer_time" ] => float(0) [ "size_upload" ] => float(0) [ "size_download" ] => float(0) [ "speed_download" ] => float(0) [ "speed_upload" ] => float(0) [ "download_content_length" ] => float(-1) [ "upload_content_length" ] => float(-1) [ "starttransfer_time" ] => float(0) [ "redirect_time" ] => float(0) [ "redirect_url" ] => string(0) ""
There seems to be some form of underlying issue here, but it's unclear what it is? Any help would be appreciated
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.