Warning: Invalid argument supplied for foreach()
500 Internal Server Error - ContextErrorException
Stack Trace
-
in src/DT/CatalogueBundle/Controller/ShowVersionController.php at line 85
$conteType = $this->rechercherLeConteType($ctCode);
foreach ($conteType->elementsDuConte as $edc) {
if ($edc->section == $section && $edc->codeElementDuConte == $edcCode){
break;
-
at
ErrorHandler
->handleError
('2', 'Invalid argument supplied for foreach()', '/home/peyroulent/www/LeConteMerveilleux/src/DT/CatalogueBundle/Controller/ShowVersionController.php', '85', array('ctCode' => 'T502', 'section' => 'II', 'edcCode' => 'A3', 'conteType' => 'not found'))
in src/DT/CatalogueBundle/Controller/ShowVersionController.php at line 85 - at ShowVersionController ->showElementDuConteAction ('T502', 'II', 'A3')
-
at
call_user_func_array
(array(object(ShowVersionController), 'showElementDuConteAction'), array('T502', 'II', 'A3'))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 153 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 68 -
at
HttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 169 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 16