Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP AWS SDK throwing unknown error

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 - assumed 'CURLE_COULDNT_RESOLVE_HOST'

Its coming from CurlBackoffStrategy witch is, as the documentation states:

Strategy used to retry when certain cURL error codes are encountered.

I'm assuming this is software incompatibility some were but I'm no sure where to look.

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.

If anyone has any idea on what this error message means or a direction to point me in would be greatly appreciated.

like image 896
dfedde Avatar asked Apr 22 '13 18:04

dfedde


1 Answers

I had forgotten to install php5-curl on my server.

like image 70
dfedde Avatar answered Oct 13 '22 23:10

dfedde