Exception detected!

Warning: Invalid argument supplied for foreach()

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/DT/CatalogueBundle/Services/ExtracteurDeContesTypes.php at line 51  -
    1.   }
    2.   public function leConteTypeExiste($ctCode,$tableauDesContesType ){
    3.     foreach ($tableauDesContesType as $ct) {
    4.       if ($ct->ctCode ==  $ctCode) return true;
    5.     }
    6.     return false;
  2. at ErrorHandler ->handleError ('2', 'Invalid argument supplied for foreach()', '/home/peyroulent/www/LeConteMerveilleux/src/DT/CatalogueBundle/Services/ExtracteurDeContesTypes.php', '51', array('ctCode' => 'T301', 'tableauDesContesType' => null))
    in src/DT/CatalogueBundle/Services/ExtracteurDeContesTypes.php at line 51  +
  3. at ExtracteurDeContesTypes ->leConteTypeExiste ('T301', null)
    in src/DT/CatalogueBundle/Services/ExtracteurDeContesTypes.php at line 30  +
  4. at ExtracteurDeContesTypes ->listeLesContesTypesContenusDansLaLigne ('*Types 301, 408, 506; Aarne FFC XXIII 126; Irish myth: Cross; Icelandic: *Boberg; India: *Thompson-Balys.', null)
    in src/PHB/BaseIndexBundle/Controller/RequeteMotifIndexController.php at line 32  +
  5. at RequeteMotifIndexController ->requestMotifAction ('H1385.1')
  6. at call_user_func_array (array(object(RequeteMotifIndexController), 'requestMotifAction'), array('H1385.1'))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 153  +
  7. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 68  +
  8. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 169  +
  9. at Kernel ->handle (object(Request))
    in web/app.php at line 16  +

Logs  -

Stack Trace (Plain Text)  +