Amazon S3 when creating an object, it throws a cURL error

I am using the latest version of amazon, which is 1.5, but why so, why every time I create an object, it generates a cURL error. Here's the error:

Fatal error: Uncaught exception 'RequestCore_Exception' with message 'cURL resource: Resource id #16; cURL error: select/poll returned error (55)' in /home/test123/test.com/amazon/lib/requestcore/requestcore.class.php:824 Stack trace: #0 /home/test123/test.com/amazon/services/s3.class.php(882): RequestCore->send_request() #1 /home/test123/test.com/amazon/services/s3.class.php(1391): AmazonS3->authenticate('bucket...', Array) #2 /home/test123/test.com/amazon_upload_video.php(41): AmazonS3->create_object('bucket...', 'z6yaissmli.mp4', Array) #3 {main} thrown in /home/test123/test.com/amazon/lib/requestcore/requestcore.class.php on line 824 

I researched how to fix it, it says that I should check config.inc.php amazon and then changed

 'certificate_authority' => false 

in

 'certificate_authority' => true 

There is still a mistake. It was also suggested to add 'curlopts' => array(CURLOPT_FORBID_REUSE => true), when creating the object, but it still fails.


I also allow other people from different countries to upload the file, but they donโ€™t get the error, possibly due to the server time zone, since I am from the Philippines and I allowed someone from America to try. The reason I did this was because I saw something about Server Time while doing the research.


What could be a possible solution for this?

Any idea, help or suggestion will be appreciated and rewarded.

Thanks!

+4
source share
2 answers

I solved this error. This is about the version of my curl. I posted the solution on my website: http://elsonsolano.com/amazon-s3-when-creating-an-object-it-throws-a-curl-error/

Thanks to the people who tried their best! Hooray!

0
source

I donโ€™t know exactly what you are using, but you can try the AWS SDK for PHP

0
source

Source: https://habr.com/ru/post/1391591/


All Articles