| ( ! ) 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 |
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 430608 | {main}( ) | .../index.php:0 |
| 2 | 0.0012 | 447408 | require_once( '/var/www/vendor/vitessecms/core/src/Bootstrap.php ) | .../index.php:7 |
| 3 | 0.0458 | 1342096 | handle( $uri = '/shopping-cart/' ) | .../Bootstrap.php:67 |
| 4 | 0.0460 | 1361856 | dispatch( ) | .../Bootstrap.php:67 |
| 5 | 0.0480 | 1369248 | VitesseCms\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 |
| 6 | 0.0525 | 1467768 | VitesseCms\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 |
| 7 | 0.1080 | 2053696 | fire( $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 |
| 8 | 0.1080 | 2054472 | fireQueue( $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 |
| 9 | 0.1081 | 2057032 | VitesseCms\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 |
| 10 | 0.1310 | 2207432 | fire( $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 |
| 11 | 0.1310 | 2208200 | fireQueue( $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 |
| 12 | 0.1310 | 2210760 | VitesseCms\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 |
| 13 | 0.1310 | 2210880 | VitesseCms\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 |
| 14 | 0.1311 | 2212864 | VitesseCms\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 |
| 15 | 0.1311 | 2212864 | VitesseCms\Shop\Helpers\CartHelper->getCartFromSession( ) | .../ShopCart.php:34 |
| 16 | 0.1311 | 2213064 | VitesseCms\Shop\Repositories\CartRepository->getById( $id = class MongoDB\BSON\ObjectId { public $oid = '6a19ec2e3072cb7d960c61bd' }, $hideUnpublished = FALSE ) | .../CartHelper.php:150 |