Notice: Undefined index: category_id
500 Internal Server Error - ContextErrorException
Stack Trace
-
in src/Frontend/Modules/Shop/Actions/Detail.php at line 91
// get by URL
$this->product = FrontendShopModel::get($this->URL->getParameter(1));
$this->category = FrontendShopModel::getCategoryById($this->product['category_id']);
// anything found?
if (empty($this->product)) {
-
at
ErrorHandler
->handleError
('8', 'Undefined index: category_id', '/data/sites/web/heidipascalbe/www/src/Frontend/Modules/Shop/Actions/Detail.php', '91', array('cookieOrderId' => null, 'cookiesEnabled' => true, 'cookieExists' => false, 'orderId' => '230216'))
in src/Frontend/Modules/Shop/Actions/Detail.php at line 91 -
at
Detail
->getData
()
in src/Frontend/Modules/Shop/Actions/Detail.php at line 54 -
at
Detail
->execute
()
in src/Frontend/Core/Engine/Block/Extra.php at line 146 -
at
Extra
->execute
()
in src/Frontend/Core/Engine/Page.php at line 418 -
at
Page
->processExtras
()
in src/Frontend/Core/Engine/Page.php at line 135 -
at
Page
->load
()
in src/Frontend/Core/Engine/Frontend.php at line 50 -
at
Frontend
->initialize
()
in app/routing.php at line 166 -
at
ApplicationRouting
->handleApplication
(object(Frontend))
in app/routing.php at line 120 - at ApplicationRouting ->frontendController (object(Request), 'shop/shoplijst/detail/halsketting-armband-nr1')
-
at
call_user_func_array
(array(object(ApplicationRouting), 'frontendController'), array(object(Request), 'shop/shoplijst/detail/halsketting-armband-nr1'))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 139 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 62 -
at
HttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/Kernel.php at line 40 -
at
Kernel
->handle
(object(Request))
in index.php at line 63