Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array,
I've recently moved hosting from a shared host to a VPS with PHP 8. When updating the cart the error below is returned... I'm not sure if this error is also linked to another issue as the cart no longer shows sub total and discounts. The grand total row shows only but it doesn't take into account the discounts. Any suggestions please?
Warning: Undefined property: eCart1_Definition::$Items in /home/domain/public_html/WA_eCart/WA_eCart_Definition_PHP.php on line 106
Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given in /home/domain/public_html/WA_eCart/WA_eCart_Definition_PHP.php:106 Stack trace: #0 /home/domain/public_html/cart.php(11): WA_eCartDefinition->CartUpdate() #1 {main} thrown in /home/domain/public_html/WA_eCart/WA_eCart_Definition_PHP.php on line 106