Exception detected!

Warning: Invalid argument supplied for foreach()

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/DT/CatalogueBundle/Controller/ShowVersionController.php at line 85  -
    1.         $conteType $this->rechercherLeConteType($ctCode);
    2.         foreach ($conteType->elementsDuConte as $edc) {
    3.             if ($edc->section == $section && $edc->codeElementDuConte == $edcCode){
    4.                 break;
  2. at ErrorHandler ->handleError ('2', 'Invalid argument supplied for foreach()', '/home/peyroulent/www/LeConteMerveilleux/src/DT/CatalogueBundle/Controller/ShowVersionController.php', '85', array('ctCode' => 'T650', 'section' => 'III', 'edcCode' => 'C2', 'conteType' => 'not found'))
    in src/DT/CatalogueBundle/Controller/ShowVersionController.php at line 85  +
  3. at ShowVersionController ->showElementDuConteAction ('T650', 'III', 'C2')
  4. at call_user_func_array (array(object(ShowVersionController), 'showElementDuConteAction'), array('T650', 'III', 'C2'))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 153  +
  5. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 68  +
  6. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 169  +
  7. at Kernel ->handle (object(Request))
    in web/app.php at line 16  +

Logs  -

Stack Trace (Plain Text)  +