Hi @tbrrorg
Even though the plugin’s readme.txt hasn’t been updated to show WP 6.3, it works fine with the latest version of WP.
Upon connecting Stripe, the process failed with a “critical error”, however shows Stripe as connected.
Can you elaborate on where you’re seeing the critical error? Is it after you’re redirected back to your WordPress site?
If you navigate to the WooCommerce > Status > Logs page is there a “fatal-error” log file? If so can you share that log file’s entries?
Kind Regards,
Mr. Clayton, thanks for the swift reply… and good to hear at least of the compatibility.
Yes, right after being redirected back to WP.
Yup, there are a number of these:
2023-08-16T01:29:16+00:00 CRITICAL Uncaught Error: Call to undefined function curl_version() in /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php:85
The whole log file looks to be a repeat of the stack trace from every attempt, so here’s just the most recent (should the entire trace prove useful):
2023-08-16T01:16:28+00:00 CRITICAL Uncaught Error: Call to undefined function curl_version() in /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php:85 Stack trace: #0 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php(73): Stripe\HttpClient\CurlClient->initUserAgentInfo() #1 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php(34): Stripe\HttpClient\CurlClient->__construct() #2 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/ApiRequestor.php(600): Stripe\HttpClient\CurlClient::instance() #3 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/ApiRequestor.php(374): Stripe\ApiRequestor->httpClient() #4 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/ApiRequestor.php(447): Stripe\ApiRequestor->_prepareRequest() #5 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/ApiRequestor.php(123): Stripe\ApiRequestor->_requestRaw() #6 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/BaseStripeClient.php(134): Stripe\ApiRequestor->request() #7 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/Service/AbstractService.php(75): Stripe\BaseStripeClient->request() #8 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php(44): Stripe\Service\AbstractService->request() #9 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-api-operation.php(94): Stripe\Service\WebhookEndpointService->create() #10 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/includes/admin/settings/class-wc-stripe-api-settings.php(366): WC_Stripe_API_Operation->__call() #11 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/includes/admin/settings/class-wc-stripe-api-settings.php(381): WC_Stripe_API_Settings->create_webhook() #12 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/includes/admin/settings/class-wc-stripe-api-settings.php(284): WC_Stripe_API_Settings->create_webhooks() #13 /usr/local/lsws/Wordpress/html/wp-includes/class-wp-hook.php(310): WC_Stripe_API_Settings->admin_options() #14 /usr/local/lsws/Wordpress/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #15 /usr/local/lsws/Wordpress/html/wp-includes/plugin.php(517): WP_Hook->do_action() #16 /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/includes/admin/class-wc-stripe-admin-settings.php(21): do_action() #17 /usr/local/lsws/Wordpress/html/wp-includes/class-wp-hook.php(310): WC_Stripe_Admin_Settings::output() #18 /usr/local/lsws/Wordpress/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #19 /usr/local/lsws/Wordpress/html/wp-includes/plugin.php(517): WP_Hook->do_action() #20 /usr/local/lsws/Wordpress/html/wp-content/plugins/woocommerce/includes/admin/views/html-admin-settings.php(40): do_action() #21 /usr/local/lsws/Wordpress/html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php(153): include(‘…’) #22 /usr/local/lsws/Wordpress/html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php(291): WC_Admin_Settings::output() #23 /usr/local/lsws/Wordpress/html/wp-includes/class-wp-hook.php(310): WC_Admin_Menus->settings_page() #24 /usr/local/lsws/Wordpress/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #25 /usr/local/lsws/Wordpress/html/wp-includes/plugin.php(517): WP_Hook->do_action() #26 /usr/local/lsws/Wordpress/html/wp-admin/admin.php(259): do_action() #27 {main} thrown in /usr/local/lsws/Wordpress/html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php on line 85
BTW, I reached a dead end when attempting to review the plugins documentation link. It leads to an SSL issue.
Link mentioned:
Similarly, the WP.org link to a demo experience also fails (SSL issue).
Thank you for your assistance.
Hi @tbrrorg
Thank you for providing the log file, it shows what the issue is. Stripe requires the PHP extension cURL which is not currently installed on your server.
If you are using a hosting provider, you will need to ask them to install cURL as that’s the library used by many plugins to make requests to external services like Stripe. Depending on your hosting provider, you may be able to install cURL yourself using your provider’s UI.
The SSL cert for those domains has been renewed and they are now working. Sometimes there is a small gap of time between when the SSL cert expires and when it auto-renews.
Kind Regards
Ah, you nailed it indeed. Being on a Litespeed server, the plugin has connected smoothly after:
apt install lsphp81-curl
My sincere thanks for the wonderfully shared & rapid assistance.