Using latest Blesta, and Stripe payment gateway. Using php 8.2.18, but without Hotfixes, as nothing works if I add them.
If I try to either pay as a client via credit card, or I try to add a credit card payment account to a client, I receive the following error.
Having debugged app/models/accounts.php lines 1325 and 1400 to just echo $value and $card_number and exit, neither of these vars are populated, so not sure where this is failing.
Any ideas?
Something went wrong.
preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated.
preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated on line 1325 in /var/www/blesta/app/models/accounts.php
UnknownException::setErrorHandler
Line 232
/var/www/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php
Monolog\ErrorHandler->handleError
Line preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated on line 1325 in /var/www/blesta/app/models/accounts.php
Printing Stack Trace:
#0 /var/www/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php(232): UnknownException::setErrorHandler()
#1 [internal function]: Monolog\ErrorHandler->handleError()
#2 /var/www/blesta/app/models/accounts.php(1325): preg_replace()
#3 /var/www/blesta/app/models/accounts.php(1400): Accounts->formatNumber()
#4 /var/www/blesta/components/gateway_payments/gateway_payments.php(1682): Accounts->creditCardType()
#5 /var/www/blesta/app/models/accounts.php(673): GatewayPayments->storeAccount()
#6 /var/www/blesta/app/controllers/admin_clients.php(3408): Accounts->addCc()
#7 /var/www/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): AdminClients->addCcAccount()
#8 /var/www/blesta/index.php(21): Dispatcher::dispatch()
#9 {main}
Question
barryf
Hi,
Using latest Blesta, and Stripe payment gateway. Using php 8.2.18, but without Hotfixes, as nothing works if I add them.
If I try to either pay as a client via credit card, or I try to add a credit card payment account to a client, I receive the following error.
Having debugged app/models/accounts.php lines 1325 and 1400 to just echo $value and $card_number and exit, neither of these vars are populated, so not sure where this is failing.
Any ideas?
Something went wrong. preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated. preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated on line 1325 in /var/www/blesta/app/models/accounts.php UnknownException::setErrorHandler Line 232 /var/www/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php Monolog\ErrorHandler->handleError Line preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated on line 1325 in /var/www/blesta/app/models/accounts.php Printing Stack Trace: #0 /var/www/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php(232): UnknownException::setErrorHandler() #1 [internal function]: Monolog\ErrorHandler->handleError() #2 /var/www/blesta/app/models/accounts.php(1325): preg_replace() #3 /var/www/blesta/app/models/accounts.php(1400): Accounts->formatNumber() #4 /var/www/blesta/components/gateway_payments/gateway_payments.php(1682): Accounts->creditCardType() #5 /var/www/blesta/app/models/accounts.php(673): GatewayPayments->storeAccount() #6 /var/www/blesta/app/controllers/admin_clients.php(3408): Accounts->addCc() #7 /var/www/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): AdminClients->addCcAccount() #8 /var/www/blesta/index.php(21): Dispatcher::dispatch() #9 {main}
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.