PHP Shopify致命错误:未捕获异常';ShopifyClientCurlException';带有消


PHP Shopify Fatal error: Uncaught exception 'ShopifyClientCurlException' with message 'SSL connection timeout'

刚从shopfiy开始,这是我的第一篇堆栈文章!

我正在尝试设置Sandeeps Shetty的"PHP中的Simple Shopify API客户端",可以在这里找到:

https://github.com/sandeepshetty/shopify_client

我在日志中不断看到以下错误(我已经删除了完整路径和api凭据):

PHP致命错误:未捕获异常"ShopifyClientCurlException"中的消息"SSL连接超时"shopify_client/shopify_customer.php:67''n堆栈跟踪:''n#0shopwriters/shopify_client/shopity_client.php(36):shopify_api('POST','https://baumbac...',NULL,数组)''n%1/home/mat/public_html/projects/shopwriters/public_html/index.php(20):oauth_access_token('shoprl…','xxx…','xxx…')''n#2{main}''n在第67行的shopify_client/shopify_customer.php中抛出

有人有类似的问题吗?我使用的是Ubuntu 12.04。

解决此问题的方法是添加:

CURLOPT_SSLVERSION=>3

到$default_curl_opts数组中的wcurl.php。

感谢所有伸出援手的人!

相关文章:
  • 没有找到相关文章