[01-Oct-2020 11:41:41 America/Boise] Request URI: /test/index.php?main_page=checkout_process,
#1 sizeof() called at [/public_html/test/includes/classes/order_total.php:66]
#2 order_total->process() called at [/public_html/test/includes/modules/checkout_process.php:83]
#3 require(/public_html/test/includes/modules/checkout_process.php) called at [/public_html/test/includes/modules/pages/checkout_process/header_php.php:14]
#4 require(/public_html/test/includes/modules/pages/checkout_process/header_php.php) called at [/public_html/test/index.php:35]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /public_html/test/includes/classes/order_total.php on line 66.
[01-Oct-2020 11:41:40 America/Boise] Request URI: /test/ipn_main_handler.php?type=ec&token=EC-5GK6XXXX
#1 sizeof() called at [/public_html/test/includes/classes/order_total.php:66]
#2 order_total->process() called at [/public_html/test/includes/modules/payment/paypalwpp.php:2813]
#3 paypalwpp->terminateEC() called at [/public_html/test/includes/modules/payment/paypalwpp.php:2083]
#4 paypalwpp->ec_step2_finish() called at [/public_html/test/includes/modules/payment/paypalwpp.php:1900]
#5 paypalwpp->ec_step2() called at [/public_html/test/ipn_main_handler.php:80]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /public_html/test/includes/classes/order_total.php on line 66.
ZC: 157 PHP 7.2
I tried to place two test orders via PayPal express checkout and PayPal pro and I got some error warning logs. Line 66 in order_total.php is the following:
Code:
function process() {
global $order;
$order_total_array = array();
if (is_array($this->modules)) {
foreach($this->modules as $value) {
$class = substr($value, 0, strrpos($value, '.'));
if (!isset($GLOBALS[$class])) continue;
$GLOBALS[$class]->process();
//line 66
for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) {
if (zen_not_null($GLOBALS[$class]->output[$i]['title']) && zen_not_null($GLOBALS[$class]->output[$i]['text'])) {
$order_total_array[] = array('code' => $GLOBALS[$class]->code,
'title' => $GLOBALS[$class]->output[$i]['title'],
'text' => $GLOBALS[$class]->output[$i]['text'],
'value' => $GLOBALS[$class]->output[$i]['value'],
'sort_order' => $GLOBALS[$class]->sort_order);
Did anyone have similar issues for PayPal checkout?
Bookmarks