tencent cloud

All product documents
Cloud Object Storage
Last updated: 2024-02-04 14:25:57
PHP SDK
Last updated: 2024-02-04 14:25:57

What do I do if the Call to undefined method GuzzleHttp\Utils::chooseHandler() error is thrown when the PHP SDK is running?

The PHP SDK depends on Guzzle. You are advised to install the SDK using Composer.
If you install the SDK using Composer, run the php composer.phar install command to install the SDK and the dependencies.
If you install the SDK using the source code, run the composer install command to install the SDK and the dependencies. For more information, please see PHP SDK - Download and Installation.

What do I do if the cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html error is reported when I use the PHP SDK to upload files?

If something is wrong with your certificate in the PHP environment, errors similar to cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html will be reported. You can solve the problem as follows:
1. Download the cacert.pem certificate file at https://curl.haxx.se/ca/cacert.pem and save it to the PHP installation path.
2. Edit the php.ini file, delete the semicolon (;) before the curl.cainfo configuration item, and set its value to the absolute path of the cacert.pem certificate file.
3. Restart PHP-dependent services.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon