Notice: Undefined offset: 0
500 Internal Server Error - ContextErrorException
Stack Trace
-
in src/AppBundle/Controller/DefaultController.php at line 509
]]);
$tModule = \GuzzleHttp\json_decode($resModule->getBody(true)->getContents());
$tParamsSameCategory = 'id_produit='.$tProduit[0]->id_produit.'&prix='.intval($tProduit[0]->prix_modif);
$resSameCategory = $client->request('GET', 'http://127.0.0.1/'.$this->getParameter('full_url_provider').'/app_dev.php/apiproducts/'.$this->getParameter('id_site').'/samecategorynew5s/'. $tParamsSameCategory, [
'headers' => [
-
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' => '1025', 'iIdProduct' => '1025', '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)), 'tOption' => array(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'), 'tDuree' => array('10000 km', '15000 km', '20000 km', '30000 km', '40000 km'), 'tContrat' => array('Location longue durée'), 'lgOption' => object(stdClass), 'resModule' => object(Response), 'tModule' => object(stdClass)))
in src/AppBundle/Controller/DefaultController.php at line 509 - at DefaultController ->detailProductIntermediaireAction (object(Request), '1025')
-
at
call_user_func_array
(array(object(DefaultController), 'detailProductIntermediaireAction'), array(object(Request), '1025'))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 137 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 57 -
at
HttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 67 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 183 -
at
Kernel
->handle
(object(Request))
in web/app_dev.php at line 18