Exception detected!

Notice: Undefined offset: 0

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/AppBundle/Controller/DefaultController.php at line 509  -
    1.             ]]);
    2.         $tModule = \GuzzleHttp\json_decode($resModule->getBody(true)->getContents());
    3.         $tParamsSameCategory 'id_produit='.$tProduit[0]->id_produit.'&prix='.intval($tProduit[0]->prix_modif);
    4.         
    5.         $resSameCategory $client->request('GET''http://127.0.0.1/'.$this->getParameter('full_url_provider').'/app_dev.php/apiproducts/'.$this->getParameter('id_site').'/samecategorynew5s/'$tParamsSameCategory, [
    6.             'headers' => [
  2. at ErrorHandler ->handleError ('8', 'Undefined offset: 0', '/var/www/garage1er-courtoisie.clubautogenerate.com/src/AppBundle/Controller/DefaultController.php', '509', array('request' => object(Request), 'id_product' => '1068', 'iIdProduct' => '1068', 'client' => object(Client), 'res' => object(Response), 'tProduit' => array(), 'resVersion' => object(Response), 'tVersion' => array(), 'retVersion' => array(), 'tRefOption' => array(object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass)), 'tOption' => array(object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass)), 'oOption' => object(stdClass), 'tKm' => array('12 mois', '24 mois', '25 mois', '27 mois', '36 mois'), 'tDuree' => array('10000 km', '20000 km', '25000 km', '30000 km', '35000 km', '40000 km', '50000 km', '60000 km', '70000 km', '90000 km'), 'tContrat' => array('Location longue durée', 'Location longue durée avec option d'achat'), 'lgOption' => object(stdClass), 'resModule' => object(Response), 'tModule' => object(stdClass)))
    in src/AppBundle/Controller/DefaultController.php at line 509  +
  3. at DefaultController ->detailProductIntermediaireAction (object(Request), '1068')
  4. at call_user_func_array (array(object(DefaultController), 'detailProductIntermediaireAction'), array(object(Request), '1068'))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 137  +
  5. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 57  +
  6. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 67  +
  7. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 183  +
  8. at Kernel ->handle (object(Request))
    in web/app_dev.php at line 18  +

Logs  -

Stack Trace (Plain Text)  +