{"id":5876,"date":"2014-04-07T23:40:40","date_gmt":"2014-04-07T23:40:40","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/php-aws-sdk-throwing-unknown-error-collection-of-common-programming-errors\/"},"modified":"2014-04-07T23:40:40","modified_gmt":"2014-04-07T23:40:40","slug":"php-aws-sdk-throwing-unknown-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/php-aws-sdk-throwing-unknown-error-collection-of-common-programming-errors\/","title":{"rendered":"PHP AWS SDK throwing unknown error-Collection of common programming errors"},"content":{"rendered":"<p>I have been working with amazon S3 for media storage for a e-commerce site but I ran into this error and have no idea how to fix it:<\/p>\n<pre><code>Use of undefined constant CURLE_COULDNT_RESOLVE_HOST - assumed 'CURLE_COULDNT_RESOLVE_HOST'\n<\/code><\/pre>\n<p>Its coming from CurlBackoffStrategy witch is, as the documentation states:<\/p>\n<blockquote>\n<p>Strategy used to retry when certain cURL error codes are encountered.<\/p>\n<\/blockquote>\n<p>I&#8217;m assuming this is software incompatibility some were but I&#8217;m no sure where to look.<\/p>\n<p>This code dose work on my local test environment but when the server gets it, it just fails. I have updated PHP and, curl to the same as my test environment but to no avail.<\/p>\n<p>If anyone has any idea on what this error message means or a direction to point me in would be greatly appreciated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been working with amazon S3 for media storage for a e-commerce site but I ran into this error and have no idea how to fix it: Use of undefined constant CURLE_COULDNT_RESOLVE_HOST &#8211; assumed &#8216;CURLE_COULDNT_RESOLVE_HOST&#8217; Its coming from CurlBackoffStrategy witch is, as the documentation states: Strategy used to retry when certain cURL error codes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5876","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5876"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5876\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}