( ! ) Fatal error: Uncaught TypeError: VitesseCms\Shop\Repositories\CartRepository::getById(): Argument #1 ($id) must be of type string, MongoDB\BSON\ObjectId given, called in /var/www/vendor/vitessecms/shop/src/Helpers/CartHelper.php on line 150 and defined in /var/www/vendor/vitessecms/shop/src/Repositories/CartRepository.php on line 23
( ! ) TypeError: VitesseCms\Shop\Repositories\CartRepository::getById(): Argument #1 ($id) must be of type string, MongoDB\BSON\ObjectId given, called in /var/www/vendor/vitessecms/shop/src/Helpers/CartHelper.php on line 150 in /var/www/vendor/vitessecms/shop/src/Repositories/CartRepository.php on line 23
Call Stack
#TimeMemoryFunctionLocation
10.0001430656{main}( ).../index.php:0
20.0036447456require_once( '/var/www/vendor/vitessecms/core/src/Bootstrap.php ).../index.php:7
30.02291342168handle( $uri = '/be/winkelwagen/' ).../Bootstrap.php:67
40.02301361928dispatch( ).../Bootstrap.php:67
50.02511369320VitesseCms\Core\AbstractControllerFrontend->afterExecuteRoute( class Phalcon\Mvc\Dispatcher { protected $container = class VitesseCms\Core\Services\BootstrapService { protected $aliases = [...]; protected $eventsManager = NULL; protected $services = [...]; protected $sharedInstances = [...] }; protected $activeHandler = class VitesseCms\Content\Controllers\IndexController { protected $container = class VitesseCms\Core\Services\BootstrapService { ... }; private VitesseCms\Mustache\Repositories\LayoutRepository ${VitesseCms\Core\AbstractControllerFrontend}layoutRepository = class VitesseCms\Mustache\Repositories\LayoutRepository { ... }; protected VitesseCms\Core\Services\RouterService $routerService = class VitesseCms\Core\Services\RouterService { ... }; protected VitesseCms\Core\Services\FlashService $flashService = class VitesseCms\Core\Services\FlashService { ... }; protected VitesseCms\Log\Services\LogService $logService = class VitesseCms\Log\Services\LogService { ... }; protected VitesseCms\Core\Services\UrlService $urlService = class VitesseCms\Core\Services\UrlService { ... }; protected VitesseCms\Core\Services\ViewService $viewService = class VitesseCms\Core\Services\ViewService { ... }; protected VitesseCms\User\Models\User $activeUser = class VitesseCms\User\Models\User { ... }; protected VitesseCms\Media\Services\AssetsService $assetsService = class VitesseCms\Media\Services\AssetsService { ... }; protected VitesseCms\Configuration\Services\ConfigService $configService = class VitesseCms\Configuration\Services\ConfigService { ... }; private VitesseCms\User\Services\AclService ${VitesseCms\Core\AbstractControllerFrontend}aclService = class VitesseCms\User\Services\AclService { ... }; protected VitesseCms\Setting\Services\SettingService $settingService = class VitesseCms\Setting\Services\SettingService { ... }; private bool ${VitesseCms\Core\AbstractControllerFrontend}isEmbedded = FALSE; private VitesseCms\Content\Repositories\ItemRepository $itemRepository = class VitesseCms\Content\Repositories\ItemRepository { ... }; public $eventsManager = class Phalcon\Events\Manager { ... }; public $request = class Phalcon\Http\Request { ... }; public $user = class VitesseCms\User\Models\User { ... } }; protected $activeMethodMap = ['index' => 'index']; protected $actionName = 'index'; protected $actionSuffix = 'Action'; protected $camelCaseMap = ['index' => 'Index']; protected $defaultAction = 'index'; protected $defaultNamespace = 'VitesseCms\\Content\\Controllers'; protected $defaultHandler = 'index'; protected $handlerHashes = ['00000000000000130000000000000000' => TRUE]; protected $handlerName = 'index'; protected $handlerSuffix = 'Controller'; protected $eventsManager = NULL; protected $finished = TRUE; protected $forwarded = FALSE; protected $isControllerInitialize = FALSE; protected $lastHandler = class VitesseCms\Content\Controllers\IndexController { protected $container = class VitesseCms\Core\Services\BootstrapService { ... }; private VitesseCms\Mustache\Repositories\LayoutRepository ${VitesseCms\Core\AbstractControllerFrontend}layoutRepository = class VitesseCms\Mustache\Repositories\LayoutRepository { ... }; protected VitesseCms\Core\Services\RouterService $routerService = class VitesseCms\Core\Services\RouterService { ... }; protected VitesseCms\Core\Services\FlashService $flashService = class VitesseCms\Core\Services\FlashService { ... }; protected VitesseCms\Log\Services\LogService $logService = class VitesseCms\Log\Services\LogService { ... }; protected VitesseCms\Core\Services\UrlService $urlService = class VitesseCms\Core\Services\UrlService { ... }; protected VitesseCms\Core\Services\ViewService $viewService = class VitesseCms\Core\Services\ViewService { ... }; protected VitesseCms\User\Models\User $activeUser = class VitesseCms\User\Models\User { ... }; protected VitesseCms\Media\Services\AssetsService $assetsService = class VitesseCms\Media\Services\AssetsService { ... }; protected VitesseCms\Configuration\Services\ConfigService $configService = class VitesseCms\Configuration\Services\ConfigService { ... }; private VitesseCms\User\Services\AclService ${VitesseCms\Core\AbstractControllerFrontend}aclService = class VitesseCms\User\Services\AclService { ... }; protected VitesseCms\Setting\Services\SettingService $settingService = class VitesseCms\Setting\Services\SettingService { ... }; private bool ${VitesseCms\Core\AbstractControllerFrontend}isEmbedded = FALSE; private VitesseCms\Content\Repositories\ItemRepository $itemRepository = class VitesseCms\Content\Repositories\ItemRepository { ... }; public $eventsManager = class Phalcon\Events\Manager { ... }; public $request = class Phalcon\Http\Request { ... }; public $user = class VitesseCms\User\Models\User { ... } }; protected $modelBinder = NULL; protected $modelBinding = FALSE; protected $moduleName = 'content'; protected $namespaceName = 'VitesseCms\\Content\\Controllers'; protected $params = []; protected $previousActionName = ''; protected $previousHandlerName = ''; protected $previousNamespaceName = ''; protected $returnedValue = NULL }, NULL ).../Bootstrap.php:67
60.03461467856VitesseCms\Core\AbstractControllerFrontend->renderPositions( $positions = ['left' => 'Left', 'right' => 'Right', 'logo' => 'Logo', 'header' => 'Header', 'footer' => 'Footer', 'menu' => 'Menu', 'languageswitch' => 'LanguageSwitch', 'aboveMaincontent' => 'Above main content', 'maincontent' => 'Main Content', 'belowMaincontent' => 'Below main content', 'topbar' => 'Topbar', 'admintoolbar' => 'Admin Toolbar', 'myaccount' => 'Myaccount'] ).../ControllerTrait.php:123
70.09522051888fire( $eventType = 'blockPositionListener:renderPosition', $source = class VitesseCms\Block\DTO\RenderPositionDTO { public readonly string $position = 'topbar'; public readonly array $roles = [0 => NULL, 1 => '', 2 => '585aea0df18c870037537061']; public readonly array $datagroups = [0 => NULL, 1 => '', 2 => 'all', 3 => '58789ba5f18c8700370d5924']; public readonly ?string $currentItemId = '58789e3bf18c870032672998' } ).../AbstractControllerFrontend.php:101
80.09522052664fireQueue( $queue = class SplPriorityQueue { }, $event = class Phalcon\Events\Event { protected $cancelable = TRUE; protected $data = NULL; protected $source = class VitesseCms\Block\DTO\RenderPositionDTO { public readonly string $position = 'topbar'; public readonly array $roles = [...]; public readonly array $datagroups = [...]; public readonly ?string $currentItemId = '58789e3bf18c870032672998' }; protected $stopped = FALSE; protected $type = 'renderPosition' } ).../AbstractControllerFrontend.php:101
90.09522055224VitesseCms\Block\Listeners\BlockPositionListener->renderPosition( $event = class Phalcon\Events\Event { protected $cancelable = TRUE; protected $data = NULL; protected $source = class VitesseCms\Block\DTO\RenderPositionDTO { public readonly string $position = 'topbar'; public readonly array $roles = [...]; public readonly array $datagroups = [...]; public readonly ?string $currentItemId = '58789e3bf18c870032672998' }; protected $stopped = FALSE; protected $type = 'renderPosition' }, $renderPositionDTO = class VitesseCms\Block\DTO\RenderPositionDTO { public readonly string $position = 'topbar'; public readonly array $roles = [0 => NULL, 1 => '', 2 => '585aea0df18c870037537061']; public readonly array $datagroups = [0 => NULL, 1 => '', 2 => 'all', 3 => '58789ba5f18c8700370d5924']; public readonly ?string $currentItemId = '58789e3bf18c870032672998' }, NULL ).../AbstractControllerFrontend.php:101
100.13072206640fire( $eventType = 'BlockListener:renderBlock', $source = class VitesseCms\Block\Models\Block { protected $container = class VitesseCms\Core\Services\BootstrapService { protected $aliases = [...]; protected $eventsManager = NULL; protected $services = [...]; protected $sharedInstances = [...] }; protected $_id = class MongoDB\BSON\ObjectId { public $oid = '58836a7ff18c87003005f9de' }; protected $connection = NULL; protected $dirtyState = 0; protected $errorMessages = []; protected $collectionsManager = class Phalcon\Incubator\MongoDB\Mvc\Collection\Manager { protected $container = class VitesseCms\Core\Services\BootstrapService { ... }; protected $eventsManager = NULL; protected $initialized = [...]; protected $sources = [...]; protected $behaviors = [...]; protected $prefix = ''; protected $serviceName = 'mongo'; protected $implicitObjectsIds = [...]; protected $connectionServices = NULL; protected $customEventsManager = NULL; protected $lastInitialized = class VitesseCms\Shop\Models\Cart { ... } }; protected $operationMade = 0; protected $skipped = FALSE; public ?string $createdAt = '2017-01-21 14:04:47'; public ?string $updatedOn = '2025-07-20 15:59:39'; public ?string $deletedOn = NULL; public ?string $createdBy = NULL; public ?array $updatedBy = NULL; public ?bool $published = TRUE; public ?string $parentId = NULL; public ?bool $hasChildren = NULL; public array|string|null $name = ['nl' => 'Minicart', 'en' => 'Minicart', 'de' => 'Minicart']; public mixed $slug = NULL; public ?string $class = ''; public string|bool|null $maincontentWrapper = NULL; public ?string $template = 'views/blocks/ShopCart/mini'; public ?string $block = 'VitesseCms\\Shop\\Blocks\\ShopCart'; public ?bool $dynamicLoading = FALSE; public $ordering = 100 } ).../BlockPositionListener.php:72
110.13072207408fireQueue( $queue = class SplPriorityQueue { }, $event = class Phalcon\Events\Event { protected $cancelable = TRUE; protected $data = NULL; protected $source = class VitesseCms\Block\Models\Block { protected $container = class VitesseCms\Core\Services\BootstrapService { ... }; protected $_id = class MongoDB\BSON\ObjectId { ... }; protected $connection = NULL; protected $dirtyState = 0; protected $errorMessages = [...]; protected $collectionsManager = class Phalcon\Incubator\MongoDB\Mvc\Collection\Manager { ... }; protected $operationMade = 0; protected $skipped = FALSE; public ?string $createdAt = '2017-01-21 14:04:47'; public ?string $updatedOn = '2025-07-20 15:59:39'; public ?string $deletedOn = NULL; public ?string $createdBy = NULL; public ?array $updatedBy = NULL; public ?bool $published = TRUE; public ?string $parentId = NULL; public ?bool $hasChildren = NULL; public array|string|null $name = [...]; public mixed $slug = NULL; public ?string $class = ''; public string|bool|null $maincontentWrapper = NULL; public ?string $template = 'views/blocks/ShopCart/mini'; public ?string $block = 'VitesseCms\\Shop\\Blocks\\ShopCart'; public ?bool $dynamicLoading = FALSE; public $ordering = 100 }; protected $stopped = FALSE; protected $type = 'renderBlock' } ).../BlockPositionListener.php:72
120.13072209968VitesseCms\Block\Listeners\BlockListeners->renderBlock( $event = class Phalcon\Events\Event { protected $cancelable = TRUE; protected $data = NULL; protected $source = class VitesseCms\Block\Models\Block { protected $container = class VitesseCms\Core\Services\BootstrapService { ... }; protected $_id = class MongoDB\BSON\ObjectId { ... }; protected $connection = NULL; protected $dirtyState = 0; protected $errorMessages = [...]; protected $collectionsManager = class Phalcon\Incubator\MongoDB\Mvc\Collection\Manager { ... }; protected $operationMade = 0; protected $skipped = FALSE; public ?string $createdAt = '2017-01-21 14:04:47'; public ?string $updatedOn = '2025-07-20 15:59:39'; public ?string $deletedOn = NULL; public ?string $createdBy = NULL; public ?array $updatedBy = NULL; public ?bool $published = TRUE; public ?string $parentId = NULL; public ?bool $hasChildren = NULL; public array|string|null $name = [...]; public mixed $slug = NULL; public ?string $class = ''; public string|bool|null $maincontentWrapper = NULL; public ?string $template = 'views/blocks/ShopCart/mini'; public ?string $block = 'VitesseCms\\Shop\\Blocks\\ShopCart'; public ?bool $dynamicLoading = FALSE; public $ordering = 100 }; protected $stopped = FALSE; protected $type = 'renderBlock' }, $block = class VitesseCms\Block\Models\Block { protected $container = class VitesseCms\Core\Services\BootstrapService { protected $aliases = [...]; protected $eventsManager = NULL; protected $services = [...]; protected $sharedInstances = [...] }; protected $_id = class MongoDB\BSON\ObjectId { public $oid = '58836a7ff18c87003005f9de' }; protected $connection = NULL; protected $dirtyState = 0; protected $errorMessages = []; protected $collectionsManager = class Phalcon\Incubator\MongoDB\Mvc\Collection\Manager { protected $container = class VitesseCms\Core\Services\BootstrapService { ... }; protected $eventsManager = NULL; protected $initialized = [...]; protected $sources = [...]; protected $behaviors = [...]; protected $prefix = ''; protected $serviceName = 'mongo'; protected $implicitObjectsIds = [...]; protected $connectionServices = NULL; protected $customEventsManager = NULL; protected $lastInitialized = class VitesseCms\Shop\Models\Cart { ... } }; protected $operationMade = 0; protected $skipped = FALSE; public ?string $createdAt = '2017-01-21 14:04:47'; public ?string $updatedOn = '2025-07-20 15:59:39'; public ?string $deletedOn = NULL; public ?string $createdBy = NULL; public ?array $updatedBy = NULL; public ?bool $published = TRUE; public ?string $parentId = NULL; public ?bool $hasChildren = NULL; public array|string|null $name = ['nl' => 'Minicart', 'en' => 'Minicart', 'de' => 'Minicart']; public mixed $slug = NULL; public ?string $class = ''; public string|bool|null $maincontentWrapper = NULL; public ?string $template = 'views/blocks/ShopCart/mini'; public ?string $block = 'VitesseCms\\Shop\\Blocks\\ShopCart'; public ?bool $dynamicLoading = FALSE; public $ordering = 100 }, NULL ).../BlockPositionListener.php:72
130.13082210088VitesseCms\Block\Listeners\BlockListeners->render( $block = class VitesseCms\Block\Models\Block { protected $container = class VitesseCms\Core\Services\BootstrapService { protected $aliases = [...]; protected $eventsManager = NULL; protected $services = [...]; protected $sharedInstances = [...] }; protected $_id = class MongoDB\BSON\ObjectId { public $oid = '58836a7ff18c87003005f9de' }; protected $connection = NULL; protected $dirtyState = 0; protected $errorMessages = []; protected $collectionsManager = class Phalcon\Incubator\MongoDB\Mvc\Collection\Manager { protected $container = class VitesseCms\Core\Services\BootstrapService { ... }; protected $eventsManager = NULL; protected $initialized = [...]; protected $sources = [...]; protected $behaviors = [...]; protected $prefix = ''; protected $serviceName = 'mongo'; protected $implicitObjectsIds = [...]; protected $connectionServices = NULL; protected $customEventsManager = NULL; protected $lastInitialized = class VitesseCms\Shop\Models\Cart { ... } }; protected $operationMade = 0; protected $skipped = FALSE; public ?string $createdAt = '2017-01-21 14:04:47'; public ?string $updatedOn = '2025-07-20 15:59:39'; public ?string $deletedOn = NULL; public ?string $createdBy = NULL; public ?array $updatedBy = NULL; public ?bool $published = TRUE; public ?string $parentId = NULL; public ?bool $hasChildren = NULL; public array|string|null $name = ['nl' => 'Minicart', 'en' => 'Minicart', 'de' => 'Minicart']; public mixed $slug = NULL; public ?string $class = ''; public string|bool|null $maincontentWrapper = NULL; public ?string $template = 'views/blocks/ShopCart/mini'; public ?string $block = 'VitesseCms\\Shop\\Blocks\\ShopCart'; public ?bool $dynamicLoading = FALSE; public $ordering = 100 } ).../BlockListeners.php:29
140.13082212072VitesseCms\Shop\Blocks\ShopCart->parse( $block = class VitesseCms\Block\Models\Block { protected $container = class VitesseCms\Core\Services\BootstrapService { protected $aliases = [...]; protected $eventsManager = NULL; protected $services = [...]; protected $sharedInstances = [...] }; protected $_id = class MongoDB\BSON\ObjectId { public $oid = '58836a7ff18c87003005f9de' }; protected $connection = NULL; protected $dirtyState = 0; protected $errorMessages = []; protected $collectionsManager = class Phalcon\Incubator\MongoDB\Mvc\Collection\Manager { protected $container = class VitesseCms\Core\Services\BootstrapService { ... }; protected $eventsManager = NULL; protected $initialized = [...]; protected $sources = [...]; protected $behaviors = [...]; protected $prefix = ''; protected $serviceName = 'mongo'; protected $implicitObjectsIds = [...]; protected $connectionServices = NULL; protected $customEventsManager = NULL; protected $lastInitialized = class VitesseCms\Shop\Models\Cart { ... } }; protected $operationMade = 0; protected $skipped = FALSE; public ?string $createdAt = '2017-01-21 14:04:47'; public ?string $updatedOn = '2025-07-20 15:59:39'; public ?string $deletedOn = NULL; public ?string $createdBy = NULL; public ?array $updatedBy = NULL; public ?bool $published = TRUE; public ?string $parentId = NULL; public ?bool $hasChildren = NULL; public array|string|null $name = ['nl' => 'Minicart', 'en' => 'Minicart', 'de' => 'Minicart']; public mixed $slug = NULL; public ?string $class = ''; public string|bool|null $maincontentWrapper = NULL; public ?string $template = 'views/blocks/ShopCart/mini'; public ?string $block = 'VitesseCms\\Shop\\Blocks\\ShopCart'; public ?bool $dynamicLoading = FALSE; public $ordering = 100 } ).../BlockListeners.php:49
150.13082212072VitesseCms\Shop\Helpers\CartHelper->getCartFromSession( ).../ShopCart.php:34
160.13092212272VitesseCms\Shop\Repositories\CartRepository->getById( $id = class MongoDB\BSON\ObjectId { public $oid = '6a1a16c08ccfe53ca20353b2' }, $hideUnpublished = FALSE ).../CartHelper.php:150