Fatal error: Uncaught TypeError: Argument 2 passed to frontend\controllers\ProductController::actionIndex() must be an instance of common\ActiveRecords\EVeikals\Category, null given in /var/www/vhosts/drosiseifi.lv/barjeras.lv/frontend/controllers/ProductController.php:27
Stack trace:
#0 [internal function]: frontend\controllers\ProductController->actionIndex(Object(common\ActiveRecords\EVeikals\Product), NULL)
#1 /var/www/vhosts/drosiseifi.lv/barjeras.lv/vendor/php-di/invoker/src/Invoker.php(82): call_user_func_array(Array, Array)
#2 /var/www/vhosts/drosiseifi.lv/barjeras.lv/vendor/php-di/php-di/src/Container.php(269): Invoker\Invoker->call(Array, Array)
#3 /var/www/vhosts/drosiseifi.lv/barjeras.lv/constructor/Controller.php(97): DI\Container->call(Array, Array)
#4 /var/www/vhosts/drosiseifi.lv/barjeras.lv/constructor/WebAction.php(37): Constructor\Controller->callAction(Object(Constructor\structures\ActionDefinition))
#5 /var/www/vhosts/drosiseifi.lv/barjeras.lv/constructor/WebApp.php(57): Constructor\WebAction->process in /var/www/vhosts/drosiseifi.lv/barjeras.lv/frontend/controllers/ProductController.php on line 27