Notice: Undefined offset: 0
500 Internal Server Error - ContextErrorException
Stack Trace
-
in src/Softlogo/DemoBundle/Controller/CatalogController.php at line 72
public function showAction($slug ,Request $request){
$product=$this->mm->findBy(array('anchor'=>$slug))[0];
$rootCategory=$this->cm->findBy(array('id'=>1))[0];
$category=$this->cm->findBy(array('id'=>1))[0];
$this->setMedias(1);
-
at
ErrorHandler
->handleError
('8', 'Undefined offset: 0', '/home/daqvrensgp/studioazdev/src/Softlogo/DemoBundle/Controller/CatalogController.php', '72', array('slug' => '856', 'request' => object(Request)))
in src/Softlogo/DemoBundle/Controller/CatalogController.php at line 72 - at CatalogController ->showAction ('856', object(Request))
-
at
call_user_func_array
(array(object(CatalogController), 'showAction'), array('856', object(Request)))
in app/bootstrap.php.cache at line 3125 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3087 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3238 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2452 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 28