My Stripe has been working fine until 4 days ago.
Now I am getting this error when the user submits the form:
Network communication failure with Stripe; please try again.
This is what I can see inside the Stripe Dashboard that it receives:
{
“type”: “card”,
“billing_details”: {
“email”: "xxx@xxx.com",
“name”: “Nolan xxx”
},
“card”: {
“number”: “************2351”,
“cvc”: “***”,
“exp_month”: “06”,
“exp_year”: “23”
},
“guid”: “c4xxxf1-efaa-488e-8xxx”,
“muid”: “7xxx13-f891-4285-b9ef-xxx”,
“sid”: “1fbxxx-4e24-429c-9040-dxxx”,
“payment_user_agent”: “stripe.js/14084d81; stripe-js-v3/14084d81”,
“time_on_page”: “113577”,
“referrer”: “https://xxx.com/”,
“key”: “pk_live_p8******************gSX8”
}
and this is what is sent back to my site:
{
“id”: “pm_1GZpfHIM6drDexxx”,
“object”: “payment_method”,
“billing_details”: {
“address”: {
“city”: null,
“country”: null,
“line1”: null,
“line2”: null,
“postal_code”: null,
“state”: null
},
“email”: "xxx@xxx.com",
“name”: “Nolan xxx”,
“phone”: null
},
“card”: {
“brand”: “mastercard”,
“checks”: {
“address_line1_check”: null,
“address_postal_code_check”: null,
“cvc_check”: null
},
“country”: “NZ”,
“exp_month”: xxx,
“exp_year”: xxx,
“funding”: “debit”,
“generated_from”: null,
“last4”: “xxx”,
“three_d_secure_usage”: {
“supported”: true
},
“wallet”: null
},
“created”: 1587350840,
“customer”: null,
“livemode”: true,
“metadata”: {
},
“type”: “card”
}
This is the entry and error get in the stripe.api log for the corresponding transaction:
Array
(
[user_id] => 0
[email] => xxx@xxx.com
[fname] => Nolan
[lname] => xxx
[metadata] => Array
(
)
[post_vars] => Array
(
[coupon] =>
[first_name] => Nolan
[last_name] => x
[email] => xxx@xxx.com
[username] => Testing
[password1] => xxx
[password2] => xxx
[street] =>
[city] =>
[state] =>
[zip] =>
[country] => US
[nonce] => c8axxb20xx
[attr] => Array
(
[ids] => 0
[exp] => 72
[level] => 1
[ccaps] => stripe
[desc] => US$5 Monthly until cancelled
[cc] => USD
[custom] => xxx.com
[ta] => 0
[tp] => 0
[tt] => D
[ra] => 5
[rp] => 1
[rt] => M
[rr] => 1
[rrt] =>
[modify] => 0
[cancel] => 0
[unsub] => 0
[sp] => 0
[register] => 0
[update] => 0
[accept] => Array
(
)
[coupon] =>
[accept_coupons] => 0
[default_country_code] => US
[captcha] => 0
[template] =>
[success] =>
[validate_zipcode] => 0
[collect_billing_address] => 0
[collect_shipping_address] => 0
[reject_prepaid] => 0
[singular] => 9006
[level_ccaps_eotper] => 1:stripe
)
[pm_id] => pm_1GZlxxxMVyKxxx
[pi_id] =>
[seti_id] =>
[sub_id] =>
[name] => Nolan xxx
[_o_username] => Testing
[recaptcha_challenge_field] =>
[recaptcha_response_field] =>
)
[input_time] => 1587333101
)
-------- Output string/vars: ( Sun, 19 Apr 20 21:51:41 +0000 ) --------
Stripe\Exception\ApiConnectionException Object
(
[error:protected] =>
[httpBody:protected] =>
[httpHeaders:protected] =>
[httpStatus:protected] =>
[jsonBody:protected] =>
[requestId:protected] =>
[stripeCode:protected] =>
[message:protected] => Unexpected error communicating with Stripe. If this problem persists, let us know at support@stripe.com.
(Network error [errno 2]: easy handle already used in multi handle)
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/lib/HttpClient/CurlClient.php
[line:protected] => 374
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/lib/HttpClient/CurlClient.php
[line] => 331
[function] => handleCurlError
[class] => Stripe\HttpClient\CurlClient
[type] => ->
[args] => Array
(
[0] => https://api.stripe.com/v1/customers
[1] => 2
[2] => easy handle already used in multi handle
[3] => 0
)
)
[1] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/lib/HttpClient/CurlClient.php
[line] => 267
[function] => executeRequestWithRetries
[class] => Stripe\HttpClient\CurlClient
[type] => ->
[args] => Array
(
[0] => Array
(
[47] => 1
[10015] => email=xxx%40xxx.com&name=Nolan+xxx&metadata[name]=Nolan+xxx&metadata[ip]=xxx.xx.171.171
[10002] => https://api.stripe.com/v1/customers
[19913] => 1
[78] => 30
[13] => 80
[10023] => Array
(
[0] => X-Stripe-Client-User-Agent: {"httplib":"curl 7.69.1","ssllib":"OpenSSL\/1.1.1f","bindings_version":"7.4.0","lang":"php","lang_version":"7.3.16","publisher":"stripe","uname":"Linux sxxx-xxx-127-7.secureserver.net 2.6.32-042stab133.2 #1 SMP Mon Aug 27 21:07:08 MSK 2018 x86_64","application":{"name":"WordPress s2Member Pro","partner_id":null,"url":"https:\/\/s2member.com","version":"200301"}}
[1] => User-Agent: Stripe/v1 PhpBindings/7.4.0 WordPress s2Member Pro/200301 (https://s2member.com)
[2] => Authorization: Bearer sk_live_3C1IxxxgPlLxFQxxxx
[3] => Stripe-Version: 2019-10-08
[4] => X-Stripe-Client-Telemetry: {"last_request_metrics":{"request_id":"req_aqxxxoWyxxxx","request_duration_ms":266}}
[5] => Content-Type: application/x-www-form-urlencoded
[6] => Expect:
)
[10065] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/data/ca-certificates.crt
[84] => 4
[20079] => Closure Object
(
[static] => Array
(
[rheaders] => Stripe\Util\CaseInsensitiveArray Object
(
[container:Stripe\Util\CaseInsensitiveArray:private] => Array
(
)
)
)
[this] => Stripe\HttpClient\CurlClient Object
(
[defaultOptions:protected] =>
[userAgentInfo:protected] => Array
(
[httplib] => curl 7.69.1
[ssllib] => OpenSSL/1.1.1f
)
[enablePersistentConnections:protected] => 1
[enableHttp2:protected] => 1
[curlHandle:protected] => Resource id #1687
[requestStatusCallback:protected] =>
[timeout:Stripe\HttpClient\CurlClient:private] => 80
[connectTimeout:Stripe\HttpClient\CurlClient:private] => 30
[randomGenerator] => Stripe\Util\RandomGenerator Object
(
)
)
[parameter] => Array
(
[$curl] => <required>
[$header_line] => <required>
)
)
)
[1] => https://api.stripe.com/v1/customers
)
)
[2] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/lib/ApiRequestor.php
[line] => 365
[function] => request
[class] => Stripe\HttpClient\CurlClient
[type] => ->
[args] => Array
(
[0] => post
[1] => https://api.stripe.com/v1/customers
[2] => Array
(
[0] => X-Stripe-Client-User-Agent: {"httplib":"curl 7.69.1","ssllib":"OpenSSL\/1.1.1f","bindings_version":"7.4.0","lang":"php","lang_version":"7.3.16","publisher":"stripe","uname":"Linux sxxx-xxx-127-7.secureserver.net 2.6.32-042stab133.2 #1 SMP Mon Aug 27 21:07:08 MSK 2018 x86_64","application":{"name":"WordPress s2Member Pro","partner_id":null,"url":"https:\/\/s2member.com","version":"200301"}}
[1] => User-Agent: Stripe/v1 PhpBindings/7.4.0 WordPress s2Member Pro/200301 (https://s2member.com)
[2] => Authorization: Bearer sk_live_3C1I95O0CgPlLvFQxxx
[3] => Stripe-Version: 2019-10-08
[4] => X-Stripe-Client-Telemetry: {"last_request_metrics":{"request_id":"req_aqmlxxyytSx","request_duration_ms":266}}
[5] => Content-Type: application/x-www-form-urlencoded
[6] => Expect:
)
[3] => Array
(
[email] => xxx@xxx.com
[name] => Nolan xxx
[metadata] => Array
(
[name] => Nolan xxx
[ip] => xxx.xx.171.171
)
)
[4] =>
)
)
[3] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/lib/ApiRequestor.php
[line] => 113
[function] => _requestRaw
[class] => Stripe\ApiRequestor
[type] => ->
[args] => Array
(
[0] => post
[1] => /v1/customers
[2] => Array
(
[email] => xxx@xxx.com
[name] => Nolan xxx
[metadata] => Array
(
[name] => Nolan xxx
[ip] => xxx.xx.171.171
)
)
[3] => Array
(
)
)
)
[4] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/lib/ApiOperations/Request.php
[line] => 62
[function] => request
[class] => Stripe\ApiRequestor
[type] => ->
[args] => Array
(
[0] => post
[1] => /v1/customers
[2] => Array
(
[email] => xxx@xxx.com
[name] => Nolan xxx
[metadata] => Array
(
[name] => Nolan xxx
[ip] => xxx.xx.171.171
)
)
[3] => Array
(
)
)
)
[5] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/lib/ApiOperations/Create.php
[line] => 26
[function] => _staticRequest
[class] => Stripe\ApiResource
[type] => ::
[args] => Array
(
[0] => post
[1] => /v1/customers
[2] => Array
(
[email] => xxx@xxx.com
[name] => Nolan xxx
[metadata] => Array
(
[name] => Nolan xxx
[ip] => xxx.xx.171.171
)
)
[3] =>
)
)
[6] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-utilities.inc.php
[line] => 125
[function] => create
[class] => Stripe\Customer
[type] => ::
[args] => Array
(
[0] => Array
(
[email] => xxx@xxx.com
[name] => Nolan xxx
[metadata] => Array
(
[name] => Nolan xxx
[ip] => xxx.xx.171.171
)
)
)
)
[7] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-checkout-in.inc.php
[line] => 376
[function] => get_customer
[class] => c_ws_plugin__s2member_pro_stripe_utilities
[type] => ::
[args] => Array
(
[0] => 0
[1] => xxx@xxx.com
[2] => Nolan
[3] => xxx
[4] => Array
(
[name] => Nolan xxx
[ip] => xxx.xx.171.171
)
[5] => Array
(
[coupon] =>
[first_name] => Nolan
[last_name] => xxx
[email] => xxx@xxx.com
[username] => Testing
[password1] => xxx
[password2] => xxx
[street] =>
[city] =>
[state] =>
[zip] =>
[country] => US
[nonce] => c8axxb2xx3
[attr] => Array
(
[ids] => 0
[exp] => 72
[level] => 1
[ccaps] => stripe
[desc] => US$5 Monthly until cancelled
[cc] => USD
[custom] => xxx.com
[ta] => 0
[tp] => 0
[tt] => D
[ra] => 5
[rp] => 1
[rt] => M
[rr] => 1
[rrt] =>
[modify] => 0
[cancel] => 0
[unsub] => 0
[sp] => 0
[register] => 0
[update] => 0
[accept] => Array
(
)
[coupon] =>
[accept_coupons] => 0
[default_country_code] => US
[captcha] => 0
[template] =>
[success] =>
[validate_zipcode] => 0
[collect_billing_address] => 0
[collect_shipping_address] => 0
[reject_prepaid] => 0
[singular] => 9006
[level_ccaps_eotper] => 1:stripe
)
[pm_id] => pm_1GZl39Ixxev76xxx2
[pi_id] =>
[seti_id] =>
[sub_id] =>
[name] => Nolan xxx
[_o_username] => Testing
[recaptcha_challenge_field] =>
[recaptcha_response_field] =>
)
)
)
[8] => Array
(
[file] => /home/xxx/public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-checkout.inc.php
[line] => 58
[function] => stripe_checkout
[class] => c_ws_plugin__s2member_pro_stripe_checkout_in
[type] => ::
[args] => Array
(
)
)
[9] => Array
(
[file] => /home/xxx/public_html/wp-includes/class-wp-hook.php
[line] => 287
[function] => stripe_checkout
[class] => c_ws_plugin__s2member_pro_stripe_checkout
[type] => ::
[args] => Array
(
[0] =>
)
)
[10] => Array
(
[file] => /home/xxx/public_html/wp-includes/class-wp-hook.php
[line] => 311
[function] => apply_filters
[class] => WP_Hook
[type] => ->
[args] => Array
(
[0] =>
[1] => Array
(
[0] =>
)
)
)
[11] => Array
(
[file] => /home/xxx/public_html/wp-includes/plugin.php
[line] => 478
[function] => do_action
[class] => WP_Hook
[type] => ->
[args] => Array
(
[0] => Array
(
[0] =>
)
)
)
[12] => Array
(
[file] => /home/xxx/public_html/wp-settings.php
[line] => 540
[function] => do_action
[args] => Array
(
[0] => init
)
)
[13] => Array
(
[file] => /home/xxx/public_html/wp-config.php
[line] => 95
[args] => Array
(
[0] => /home/xxx/public_html/wp-settings.php
)
[function] => require_once
)
[14] => Array
(
[file] => /home/xxx/public_html/wp-load.php
[line] => 37
[args] => Array
(
[0] => /home/xxx/public_html/wp-config.php
)
[function] => require_once
)
[15] => Array
(
[file] => /home/xxx/public_html/wp-blog-header.php
[line] => 13
[args] => Array
(
[0] => /home/xxx/public_html/wp-load.php
)
[function] => require_once
)
[16] => Array
(
[file] => /home/xxx/public_html/index.php
[line] => 17
[args] => Array
(
[0] => /home/xxx/public_html/wp-blog-header.php
)
[function] => require
)
)
[previous:Exception:private] =>
)
I have deactivated all plugins to exclude any updated plugins as the culprit and get the same error.
My server info is:
|Server architecture|Linux 2.6.32-042stab133.2 x86_64|
|Web server|Apache|
|PHP version|7.4.2 (Supports 64bit values)|
|PHP SAPI|cgi-fcgi|
|PHP max input variables|10000|
|PHP time limit|300|
|PHP memory limit|256M|
|Max input time|1000|
|Upload max filesize|32M|
|PHP post max size|64M|
|cURL version|7.69.1 OpenSSL/1.1.1f|
|Is SUHOSIN installed?|No|
|Is the Imagick library available?|Yes|
WP Theme is OptimizePress 2.5.16
A WP Site health check reveals:
-
Rest API Encountered and error:
Error: cURL error 2: (http_request_failed) -
Site could not complete a loopback request:
Error: cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received (http_request_failed)
S2Member Paypal Buttons are working fine as well as Clickbank purchases are also still coming through fine.
PS - I did look at this topic but the error is different so a different issue:
Are you able to assist with some guidance with this issue as I have not been able to come up with an answer from my side.
Thank you for your help in advance
Nolan