I'm using the latest amazon-version which is 1.5, but why oh why that everytime I'm creating an object it throws 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 made a researched on how to fix this one it says that I should check the config.inc.php of amazon then changed the
'certificate_authority' => false
into
'certificate_authority' => true
Still there's an error. There was also a suggestion to add 'curlopts' => array(CURLOPT_FORBID_REUSE => true),
when creating an object, but still it fails.
I also let other people from different country upload a file but they are not getting an error, maybe it because of a Server Timezone, since I am from Philippines and I let someone from America tried it. The reason why I concluded that way because I saw something about Server Time when doing a research.
What could be the possible solution for this one?
Any idea, help or suggestion would be greatly appreciated and rewarded.
Thanks!
我不确切知道您使用的是什么,但您可能会尝试使用AWS SDK for PHP
I solved this bug. It's 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! Cheers!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.