Fatal error: Uncaught TypeError: Argument 1 passed to frontend\classes\Cart::addItem() must be an instance of frontend\classes\CartItem, null given, called in /var/www/clients/client1/web78/web/frontend/library/Extensions/class.CartExtension.php on line 173 and defined in /var/www/clients/client1/web78/web/frontend/classes/Cart.php:24 Stack trace: #0 /var/www/clients/client1/web78/web/frontend/library/Extensions/class.CartExtension.php(173): frontend\classes\Cart->addItem(NULL) #1 /var/www/clients/client1/web78/web/frontend/controllers/CartController.php(235): Extensions\CartExtension->addItem(Array, 1) #2 [internal function]: frontend\controllers\CartController->actionAdd(Object(Constructor\WebRequest), 76, 'lv') #3 /var/www/clients/client1/web78/web/vendor/php-di/invoker/src/Invoker.php(82): call_user_func_array(Array, Array) #4 /var/www/clients/client1/web78/web/vendor/php-di/php-di/src/Container.php(269): Invoker\Invoker->call(Array, Array) #5 /var/www/clients/client1/web78/web/constructor/Controller.php(97): DI\Conta in /var/www/clients/client1/web78/web/frontend/classes/Cart.php on line 24