Uncaught CurlException:77:错误设置证书验证位置 [英] Uncaught CurlException: 77 : error setting certificate verify locations
问题描述
我仍然收到同样的错误。我刚安装了SSL,没有运气。我已经检查了所有其他的职位,但没有一个解决方案似乎对我有用。
有人知道我该怎么办?
致命错误: CurlException:77:错误设置证书
验证位置:CAfile:/etc/pki/tls/certs/ca-bundle.crt CApath:
无引号
/ home / acmesoft / public_html / Oddsmaker / php_sdk / base_facebook.php on line
977
if === false){
$ e = new FacebookApiException(array(
'error_code'=> curl_errno($ ch),
'error'=& 'message'=> curl_error($ ch),
'type'=>'CurlException',
),
)
curl_close($ ch);
throw $ e;
}
curl_close($ ch);
return $ result;
我有同样的错误,解决了,我只是把这两行
Facebook :: $ CURL_OPTS [CURLOPT_SSL_VERIFYPEER] = false;
Facebook :: $ CURL_OPTS [CURLOPT_SSL_VERIFYHOST] = 2;
$ facebook = new Facebook(array(
'appId'=>'xxx',
'secret'=>'xxx',
' '=> true,
'perms'=>'publish_stream,read_stream,email',
'domain'=>'example.com'
))
I keep getting this same error. I just installed the SSL and no luck. I have checked out all the other posts but none of the solutions seemed to work for me.
Does anyone know what should I be doing ?
Fatal error: Uncaught CurlException: 77: error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none thrown in /home/acmesoft/public_html/Oddsmaker/php_sdk/base_facebook.php on line 977
if ($result === false) { $e = new FacebookApiException(array( 'error_code' => curl_errno($ch), 'error' => array( 'message' => curl_error($ch), 'type' => 'CurlException', ), )); curl_close($ch); throw $e; } curl_close($ch); return $result;
解决方案I have the same error with you and this problem was solved, I just put this 2 lines
Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = false; Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYHOST] = 2;
after your facebook apps definition
$facebook = new Facebook(array( 'appId' => 'xxx', 'secret' => 'xxx', 'cookie' => true, 'perms' => 'publish_stream,read_stream,email', 'domain' => 'example.com' ))
这篇关于Uncaught CurlException:77:错误设置证书验证位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!