- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我不断收到同样的错误。我刚刚安装了 SSL,但没有成功。我已经检查了所有其他帖子,但似乎没有一个解决方案适合我。
有人知道我应该做什么吗?
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;
最佳答案
Riyanto Wibowo 的回复很危险,因为您实际上是在关闭 SSL。走那条路要小心。来自comment on the php manual :
Please everyone, stop setting CURLOPT_SSL_VERIFYPEER to false or 0. If your PHP installation doesn't have an up-to-date CA root certificate bundle, download the one at the curl website and save it on your server:
http://curl.haxx.se/docs/caextract.html
Then set a path to it in your php.ini file, e.g. on Windows:
curl.cainfo=c:\php\cacert.pem
Turning off CURLOPT_SSL_VERIFYPEER allows man in the middle (MITM) attacks, which you don't want!
我本想将此作为评论发布,但我没有足够的声誉。
关于php - 未捕获的 CurlException : 77 : error setting certificate verify locations,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15149308/
我有一个实时的 Facebook 应用程序。从上周开始,我不断得到 PHP fatal error :未捕获的 CurlException:7:无法连接到 2a03:2880:2110:3f03:fa
尽管本地和生产服务器连接正常,但在尝试连接到 EventBrite API 时,我在登台服务器上遇到了 CURL 错误: [curl] 6: Could not resolve host: www.e
我不时收到来自 facebook 的错误: fatal error :未捕获的 CurlException:28:connect() 超时!在 614 行的/var/www/html/xxx/face
有时会出现,有时不会。自从前两天运行良好的应用程序以来。 CurlException: 60: SSL 证书问题,验证 CA 证书是否正常。详细信息:错误:14090086:SSL 例程:SSL3_G
很多人在使用 Facebook 身份验证时遇到的错误是: CurlException: 60: SSL certificate problem, verify that the CA cert is
我不断收到同样的错误。我刚刚安装了 SSL,但没有成功。我已经检查了所有其他帖子,但似乎没有一个解决方案适合我。 有人知道我应该做什么吗? Fatal error: Uncaught CurlExce
我随机得到以下错误。它不会每次都发生。 PHP Fatal error: Uncaught CurlException: 28: Operation timed out after 60 secon
我的网站在 Facebook PHP SDK 中出现以下错误:“未捕获的 CurlException:28:SSL 连接超时” 代码直到今天都运行良好,服务器上没有任何变化。 我尝试将 cURL 选项
我收到以下错误: Fatal error: Uncaught CurlException: 26: failed creating formpost data thrown in /home/u801
我只是遵循来自 Facebook SDK example 的相同代码. 如果 FB App 指向我的本地桌面,如果 APP 从 OAUTH 请求获得许可,它将获取 Facebook uid 和用户基本
我一直收到这个错误,它似乎是凭空出现的。我已经在我的项目上工作了几个星期,直到现在才出现。 当我尝试在 localhost 上运行我的应用程序时,会显示标题中的错误。我尝试按照另一篇文章中的说明在 b
我已经在 Microsoft Azure 中部署了一个 Kubernetes 集群,并想使用 https 从 .Net Core c# 程序调用一些 REST API。在不受信任的 CA 中部署集群时
我正在尝试根据示例 here 开发一个示例 facebook php 登录示例 我已经托管了我的应用 here ,但每当我尝试访问链接时,都会在问题中收到错误消息。这是抛出错误的代码段 try {
我对所有版本的 php-sdk 都遇到相同的 ssl 错误,我增加了超时值,但仍然存在同样的问题,但是当我在不同的服务器上尝试相同的示例代码时,它运行良好。我认为可能存在与服务器相关的问题,例如 li
这个问题在这里已经有了答案: Facebook API gives Error from Today (3 个答案) 关闭 7 年前。 我的使用 Facebook SDK for PHP v2.0
我是一名优秀的程序员,十分优秀!