Exceptions
Exception
ErrorException
NbDesigner->getOptionByProduct(object(Request), '14')
in
src/Controller/Front/ProductOptionController.php (line 133)
/**
* @Route("/get-option-by-product/{idProduct}", name="get_option_by_product",options={"expose"=true})
*/
public function optionByProduct(Request $request,$idProduct) : Response
{
$data = $this->nbDesigner->getOptionByProduct($request,$idProduct);
$responseInfoTaille = $this->twig->render('front/product-option/info-taille.html.twig',$data);
$responseOption = $this->twig->render('front/product-option/options-global.html.twig',$data);
$data['isFormatType'] = true;
$responseOptionFormatType = $this->twig->render('front/product-option/options-global-new.html.twig',$data);
$data['isFormatType'] = false;
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
Stack Trace
ErrorException |
---|
ErrorException: Notice: Undefined offset: 0 at src/Services/NbDesigner.php:428 at App\Services\NbDesigner->getOptionByProduct(object(Request), '14') (src/Controller/Front/ProductOptionController.php:133) at App\Controller\Front\ProductOptionController->optionByProduct(object(Request), '14') (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:198) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:25) |