
Originally Posted by
todoonada
I found this error in the log files after the customer had trouble with payment:
--> PHP Fatal error: Uncaught TypeError: Square\ApiHelper::serialize(): Return value must be of type string, bool returned in /home2/rcracean/public_html/silversalt/includes/modules/payment/square_webPay/square/square/src/ApiHelper.php:113
I did not receive any Square Alert mail about this error.
I use Zen Cart v1.5.7d and php 8.0.25
Has anybody any idea what could cause this error?
i have not seen this error.
it will be a tricky one to figure out as the error is coming from the square SDK.
you could try changing line 108 from includes/modules/payment/square_webPay/square/square/src/ApiHelper.php as below, but it is a pure guess on my part.
PHP Code:
//from
public static function serialize($value): string
//to
public static function serialize($value): ?string
and i'm unsure what else that might affect.
best.
Bookmarks