Jump to content

"curl_version" from namespace "Stripe\HttpClient"


Hightmar

Recommended Posts

Hello everyone,

I obviously have a problem with cURL that makes my server crash (error 500) when I want to configure Stripe and/or Paypal. My /order page displays a 500 error too. I've never had this problem before and I don't understand what's going on. 

I'm on :
PrestaShop 1.7.6.4
PHP FPM 7.2.28
cURL :

curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

I get the following error messages:

Stripe :

 (1/1) UndefinedFunctionException

Attempted to call function "curl_version" from namespace "Stripe\HttpClient".
in CurlClient.php line 84
at CurlClient->initUserAgentInfo()in CurlClient.php line 68
at CurlClient->__construct()in CurlClient.php line 36
at CurlClient::instance()in ApiRequestor.php line 504
at ApiRequestor->httpClient()in ApiRequestor.php line 349
at ApiRequestor->_requestRaw('post', '/v1/payment_intents', array('amount' => 2490.0, 'currency' => 'eur', 'payment_method_types' => array(array('card'))), array())in ApiRequestor.php line 125
at ApiRequestor->request('post', '/v1/payment_intents', array('amount' => 2490.0, 'currency' => 'eur', 'payment_method_types' => array(array('card'))), array())in Request.php line 57
at ApiResource::_staticRequest('post', '/v1/payment_intents', array('amount' => 2490.0, 'currency' => 'eur', 'payment_method_types' => array(array('card'))), null)in Create.php line 23
at PaymentIntent::create(array('amount' => 2490.0, 'currency' => 'eur', 'payment_method_types' => array(array('card'))))in stripe_official.php line 945
at Stripe_official->retrievePaymentIntent(2490.0, 'eur')in stripe_official.php line 1076
at Stripe_official->hookHeader(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 17))in pagecache.php line 2003
at PageCache::execHook('m', object(Stripe_official), 'hookHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 17))in Hook.php line 24
at Hook::coreCallHook(object(Stripe_official), 'hookHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 17))in Hook.php line 359
at HookCore::callHookOn(object(Stripe_official), 'displayHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 17))in Hook.php line 907
at HookCore::exec('displayHeader')in FrontController.php line 556
at FrontControllerCore->initContent()in OrderController.php line 306
at OrderControllerCore->initContent()in Controller.php line 292
at ControllerCore->run()in Dispatcher.php line 449
at Dispatcher->dispatch()in index.php line 28

Paypal :

Symfony\Component\Debug\Exception\ UndefinedFunctionException
in modules/paypal/classes/AdminPayPalController.php (line 170)

                } else {
                    $return['status'] = true;
                }
            } else {
                $return['status'] = false;
                if (version_compare(curl_version()['version'], '7.34.0', '<')) {
                    $message = sprintf('You current cURL version is %s. Please contact you server for updating it to 7.34.0', curl_version()['version']);
                    $return['error_message'] = $this->module->l($message, 'AdminPayPalController');
                } else {
                    $return['error_message'] = $this->module->l('TLS version is not compatible', 'AdminPayPalController');
                }

AdminPayPalController->_checkTLSVersion() in modules/paypal/controllers/admin/AdminPayPalSetupController.php (line 269)
AdminPayPalSetupController->initStatusBlock() in modules/paypal/controllers/admin/AdminPayPalSetupController.php (line 99)
AdminPayPalSetupController->initContent() in classes/controller/Controller.php (line 292)
ControllerCore->run() in override/classes/Dispatcher.php (line 449)
Dispatcher->dispatch() in admin755lpy7z8/index.php (line 97) 

Do you have any resolution ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...