Just starting out with shopfiy and this is my first ever stack post!
I’m trying to setup Sandeeps Shetty’s “Simple Shopify API client in PHP” found here:
https://github.com/sandeepshetty/shopify_client
I keep seeing the following error in my logs (i’ve removed full paths and api creds):
PHP Fatal error: Uncaught exception ‘ShopifyClientCurlException’ with
message ‘SSL connection timeout’ in
shopify_client/shopify_client.php:67\nStack trace:\n#0
shopwriters/shopify_client/shopify_client.php(36): shopify_api(‘POST’,
‘https://baumbac…’, NULL, Array)\n#1
/home/matt/public_html/projects/shopwriters/public_html/index.php(20):
oauth_access_token(‘shopurl…’, ‘xxx…’, ‘xxx…’, ‘xxx…’)\n#2
{main}\n thrown in shopify_client/shopify_client.php on line 67
Anyone had a similar issue? I’m on Ubuntu 12.04.
The fix for this problem was adding:
CURLOPT_SSLVERSION => 3
to wcurl.php in the $default_curl_opts array.
Thanks to all who helped out!