^ array:18 [
  0 => array:1 [
    "weigh" => ""
  ]
  1 => array:1 [
    "weigh" => "50"
  ]
  2 => array:1 [
    "weigh" => "110"
  ]
  3 => array:1 [
    "weigh" => "130"
  ]
  4 => array:1 [
    "weigh" => "45"
  ]
  5 => array:1 [
    "weigh" => "100"
  ]
  6 => array:1 [
    "weigh" => "200"
  ]
  7 => array:1 [
    "weigh" => "167"
  ]
  8 => array:1 [
    "weigh" => "92"
  ]
  9 => array:1 [
    "weigh" => "280"
  ]
  10 => array:1 [
    "weigh" => "490"
  ]
  11 => array:1 [
    "weigh" => "560"
  ]
  12 => array:1 [
    "weigh" => "150"
  ]
  13 => array:1 [
    "weigh" => "65"
  ]
  14 => array:1 [
    "weigh" => "140"
  ]
  15 => array:1 [
    "weigh" => "90"
  ]
  16 => array:1 [
    "weigh" => "25"
  ]
  17 => array:1 [
    "weigh" => "33"
  ]
]
^ array:4 [
  "page_title" => "Categorie : Épicerie fine"
  "products" => Knp\Bundle\PaginatorBundle\Pagination\SlidingPagination {#1576
    -route: "_products_by_weigh"
    -params: array:3 [
      "category_id" => "8"
      "category_slug" => "epicerie-fine"
      "weigh" => "560"
    ]
    -pageRange: 5
    -template: "@BDMNicolasFrontend/Partials/pagniation_products.html.twig"
    -sortableTemplate: "@BDMNicolasFrontend/Partials/sortable.html.twig"
    -filtrationTemplate: "@KnpPaginator/Pagination/filtration.html.twig"
    #currentPageNumber: 1
    #numItemsPerPage: 9
    #items: array:1 [
      0 => BDM\Nicolas\BackendBundle\Entity\Product {#1762
        -id: 1121
        -label: "Rillettes gourmandes"
        -careLevel: null
        -ref: "REF1781"
        -seen: 253
        -serviceTemperature: null
        -regularPrice: 295.0
        -strikePrice: 295.0
        -loyalityPrice: 295.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Assortiment de rillettes qui feront le bonheur des plus gourmands !"
        #slug: "rillettes-gourmandes"
        #weigh: "560"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#1557
          +__isInitialized__: false
          -id: 39
          -label: null
          -code: null
          -slug: null
          -isActive: null
          #category: null
          #products: null
           …2
        }
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#1809
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1762}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#315 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1758 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1810
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#1825
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1762}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#315 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1542 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1824
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#1837
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1762}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#315 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1822 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1836
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#1846
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1762}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#315 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1834 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1845
            -elements: []
          }
          #initialized: false
        }
      }
    ]
    #totalCount: 1
    #paginatorOptions: array:6 [
      "pageParameterName" => "page"
      "sortFieldParameterName" => "sort"
      "sortDirectionParameterName" => "direction"
      "filterFieldParameterName" => "filterField"
      "filterValueParameterName" => "filterValue"
      "distinct" => true
    ]
    #customParameters: array:1 [
      "sorted" => true
    ]
  }
  "category" => BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1707
    -id: 8
    -label: "Épicerie fine"
    -code: "comtesse-du-barry"
    -description: "comtesse-du-barry"
    -slug: "epicerie-fine"
    -isActive: 1
    #subcategories: Doctrine\ORM\PersistentCollection {#1668
      -snapshot: []
      -owner: BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1707}
      -association: array:15 [ …15]
      -em: Doctrine\ORM\EntityManager {#315 …11}
      -backRefFieldName: "category"
      -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1692 …}
      -isDirty: false
      #collection: Doctrine\Common\Collections\ArrayCollection {#1616
        -elements: []
      }
      #initialized: false
    }
    #banners: Doctrine\ORM\PersistentCollection {#1626
      -snapshot: []
      -owner: BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1707}
      -association: array:15 [ …15]
      -em: Doctrine\ORM\EntityManager {#315 …11}
      -backRefFieldName: "category"
      -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1619 …}
      -isDirty: false
      #collection: Doctrine\Common\Collections\ArrayCollection {#1625
        -elements: []
      }
      #initialized: false
    }
  }
  "weighs" => array:18 [
    0 => ""
    1 => "50"
    2 => "110"
    3 => "130"
    4 => "45"
    5 => "100"
    6 => "200"
    7 => "167"
    8 => "92"
    9 => "280"
    10 => "490"
    11 => "560"
    12 => "150"
    13 => "65"
    14 => "140"
    15 => "90"
    16 => "25"
    17 => "33"
  ]
]
An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182."). (500 Internal Server Error)

Symfony Exception

An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.").

Exceptions 6

Twig\Error\ RuntimeError

  1.                 <a  href="{{ path('_frontend_cart') }}">
  2.                     <span class="ns-QuickCart-IconContainer">
  3.                         <span id="cart-count" class="ns-QuickCart-itemLength js-QuickCart-itemLength">
  4.                         {% if app.session.get('number_items') is null %}
  5.                             0
  6.                         {% else %}
  7.                              {{ app.session.get('number_items') }} 
  8.                         {% endif %}
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.                 return '';
  2.             });
  3.         }
  4.         try {
  5.             $this->display($context);
  6.         } catch (\Throwable $e) {
  7.             while (ob_get_level() > $level) {
  8.                 ob_end_clean();
  9.             }
  1.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context, \func_get_args()[1] ?? []);
  6.     }
  7.     /**
  8.      * Displays the template.
  9.      *
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.             [
  2.                 'status_code' => $code,
  3.                 'status_text' => isset(Response::$statusTexts[$code]) ? Response::$statusTexts[$code] : '',
  4.                 'exception' => $exception,
  5.                 'logger' => $logger,
  6.                 'currentContent' => $currentContent,
  7.             ]
  8.         ), 200, ['Content-Type' => $request->getMimeType($request->getRequestFormat()) ?: 'text/html']);
  9.     }
  10.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $exception $event->getException();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         $eventDispatcher = \func_num_args() > func_get_arg(2) : null;
  4.         try {
  5.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  6.         } catch (\Exception $e) {
  7.             $f FlattenException::createFromThrowable($e);
  8.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.     {
  2.         if (!$request $request ?: $this->requestStack->getMasterRequest()) {
  3.             throw $exception;
  4.         }
  5.         $response $this->handleThrowable($exception$requestself::MASTER_REQUEST);
  6.         $response->sendHeaders();
  7.         $response->sendContent();
  8.         $this->terminate($request$response);
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /home/wwwnicolas/public_html/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 599)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException(object(RuntimeError))

RuntimeException

Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.

  1.         if (PHP_SESSION_ACTIVE === session_status()) {
  2.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3.         }
  4.         if (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && headers_sent($file$line)) {
  5.             throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line));
  6.         }
  7.         // ok to try and start the session
  8.         if (!session_start()) {
  9.             throw new \RuntimeException('Failed to start the session.');
  1.         }
  2.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getBag($name)
  5.     {
  6.         $bag $this->storage->getBag($name);
  7.         return method_exists($bag'getBag') ? $bag->getBag() : $bag;
  8.     }
  9.     /**
  1.      *
  2.      * Note that this method was added to help with IDE autocompletion.
  3.      */
  4.     private function getAttributeBag(): AttributeBagInterface
  5.     {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function get($name$default null)
  5.     {
  6.         return $this->getAttributeBag()->get($name$default);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     }
  2.     // Some objects throw exceptions when they have __call, and the method we try
  3.     // to call is not supported. If ignoreStrictCheck is true, we should return null.
  4.     try {
  5.         $ret $object->$method(...$arguments);
  6.     } catch (\BadMethodCallException $e) {
  7.         if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
  8.             return;
  9.         }
  10.         throw $e;
  1.                         <span id=\"cart-count\" class=\"ns-QuickCart-itemLength js-QuickCart-itemLength\">
  2.                         ";
  3.         // line 249
  4.         if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'249$this->source); })()), "session", [], "any"falsefalsefalse249), "get", [=> "number_items"], "method"falsefalsefalse249))) {
  5.             // line 250
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 252
  1.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  2.     {
  3.         try {
  4.             $this->doDisplay($context$blocks);
  5.         } catch (Error $e) {
  6.             if (!$e->getSourceContext()) {
  7.                 $e->setSourceContext($this->getSourceContext());
  8.             }
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.                 return '';
  2.             });
  3.         }
  4.         try {
  5.             $this->display($context);
  6.         } catch (\Throwable $e) {
  7.             while (ob_get_level() > $level) {
  8.                 ob_end_clean();
  9.             }
  1.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context, \func_get_args()[1] ?? []);
  6.     }
  7.     /**
  8.      * Displays the template.
  9.      *
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.             [
  2.                 'status_code' => $code,
  3.                 'status_text' => isset(Response::$statusTexts[$code]) ? Response::$statusTexts[$code] : '',
  4.                 'exception' => $exception,
  5.                 'logger' => $logger,
  6.                 'currentContent' => $currentContent,
  7.             ]
  8.         ), 200, ['Content-Type' => $request->getMimeType($request->getRequestFormat()) ?: 'text/html']);
  9.     }
  10.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $exception $event->getException();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         $eventDispatcher = \func_num_args() > func_get_arg(2) : null;
  4.         try {
  5.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  6.         } catch (\Exception $e) {
  7.             $f FlattenException::createFromThrowable($e);
  8.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.     {
  2.         if (!$request $request ?: $this->requestStack->getMasterRequest()) {
  3.             throw $exception;
  4.         }
  5.         $response $this->handleThrowable($exception$requestself::MASTER_REQUEST);
  6.         $response->sendHeaders();
  7.         $response->sendContent();
  8.         $this->terminate($request$response);
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /home/wwwnicolas/public_html/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 599)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException(object(RuntimeError))

Twig\Error\ RuntimeError

An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.").

  1.                 <a  href="{{ path('_frontend_cart') }}">
  2.                     <span class="ns-QuickCart-IconContainer">
  3.                         <span id="cart-count" class="ns-QuickCart-itemLength js-QuickCart-itemLength">
  4.                         {% if app.session.get('number_items') is null %}
  5.                             0
  6.                         {% else %}
  7.                              {{ app.session.get('number_items') }} 
  8.                         {% endif %}
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.                 return '';
  2.             });
  3.         }
  4.         try {
  5.             $this->display($context);
  6.         } catch (\Throwable $e) {
  7.             while (ob_get_level() > $level) {
  8.                 ob_end_clean();
  9.             }
  1.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context, \func_get_args()[1] ?? []);
  6.     }
  7.     /**
  8.      * Displays the template.
  9.      *
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.             [
  2.                 'status_code' => $code,
  3.                 'status_text' => isset(Response::$statusTexts[$code]) ? Response::$statusTexts[$code] : '',
  4.                 'exception' => $exception,
  5.                 'logger' => $logger,
  6.                 'currentContent' => $currentContent,
  7.             ]
  8.         ), 200, ['Content-Type' => $request->getMimeType($request->getRequestFormat()) ?: 'text/html']);
  9.     }
  10.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $exception $event->getException();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         $eventDispatcher = \func_num_args() > func_get_arg(2) : null;
  4.         try {
  5.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  6.         } catch (\Exception $e) {
  7.             $f FlattenException::createFromThrowable($e);
  8.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in /home/wwwnicolas/public_html/public/index.php (line 28)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

RuntimeException

Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.

  1.         if (PHP_SESSION_ACTIVE === session_status()) {
  2.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3.         }
  4.         if (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && headers_sent($file$line)) {
  5.             throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line));
  6.         }
  7.         // ok to try and start the session
  8.         if (!session_start()) {
  9.             throw new \RuntimeException('Failed to start the session.');
  1.         }
  2.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getBag($name)
  5.     {
  6.         $bag $this->storage->getBag($name);
  7.         return method_exists($bag'getBag') ? $bag->getBag() : $bag;
  8.     }
  9.     /**
  1.      *
  2.      * Note that this method was added to help with IDE autocompletion.
  3.      */
  4.     private function getAttributeBag(): AttributeBagInterface
  5.     {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function get($name$default null)
  5.     {
  6.         return $this->getAttributeBag()->get($name$default);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     }
  2.     // Some objects throw exceptions when they have __call, and the method we try
  3.     // to call is not supported. If ignoreStrictCheck is true, we should return null.
  4.     try {
  5.         $ret $object->$method(...$arguments);
  6.     } catch (\BadMethodCallException $e) {
  7.         if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
  8.             return;
  9.         }
  10.         throw $e;
  1.                         <span id=\"cart-count\" class=\"ns-QuickCart-itemLength js-QuickCart-itemLength\">
  2.                         ";
  3.         // line 249
  4.         if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'249$this->source); })()), "session", [], "any"falsefalsefalse249), "get", [=> "number_items"], "method"falsefalsefalse249))) {
  5.             // line 250
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 252
  1.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  2.     {
  3.         try {
  4.             $this->doDisplay($context$blocks);
  5.         } catch (Error $e) {
  6.             if (!$e->getSourceContext()) {
  7.                 $e->setSourceContext($this->getSourceContext());
  8.             }
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.                 return '';
  2.             });
  3.         }
  4.         try {
  5.             $this->display($context);
  6.         } catch (\Throwable $e) {
  7.             while (ob_get_level() > $level) {
  8.                 ob_end_clean();
  9.             }
  1.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context, \func_get_args()[1] ?? []);
  6.     }
  7.     /**
  8.      * Displays the template.
  9.      *
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.             [
  2.                 'status_code' => $code,
  3.                 'status_text' => isset(Response::$statusTexts[$code]) ? Response::$statusTexts[$code] : '',
  4.                 'exception' => $exception,
  5.                 'logger' => $logger,
  6.                 'currentContent' => $currentContent,
  7.             ]
  8.         ), 200, ['Content-Type' => $request->getMimeType($request->getRequestFormat()) ?: 'text/html']);
  9.     }
  10.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $exception $event->getException();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         $eventDispatcher = \func_num_args() > func_get_arg(2) : null;
  4.         try {
  5.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  6.         } catch (\Exception $e) {
  7.             $f FlattenException::createFromThrowable($e);
  8.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in /home/wwwnicolas/public_html/public/index.php (line 28)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Twig\Error\ RuntimeError

An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.").

  1.                 <a  href="{{ path('_frontend_cart') }}">
  2.                     <span class="ns-QuickCart-IconContainer">
  3.                         <span id="cart-count" class="ns-QuickCart-itemLength js-QuickCart-itemLength">
  4.                         {% if app.session.get('number_items') is null %}
  5.                             0
  6.                         {% else %}
  7.                              {{ app.session.get('number_items') }} 
  8.                         {% endif %}
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.         echo "
  2. ";
  3.         // line 253
  4.         $this->loadTemplate("@BDMNicolasFrontend/Partials/header.html.twig""@BDMNicolasFrontend/layout.html.twig"253)->display($context);
  5.         // line 254
  6.         echo "
  7. ";
  8.         // line 255
  9.         $this->displayBlock('content'$context$blocks);
  1.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  2.     {
  3.         try {
  4.             $this->doDisplay($context$blocks);
  5.         } catch (Error $e) {
  6.             if (!$e->getSourceContext()) {
  7.                 $e->setSourceContext($this->getSourceContext());
  8.             }
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BDMNicolasFrontend/Products/index.html.twig"));
  4.         $this->parent $this->loadTemplate("@BDMNicolasFrontend/layout.html.twig""@BDMNicolasFrontend/Products/index.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
  1.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  2.     {
  3.         try {
  4.             $this->doDisplay($context$blocks);
  5.         } catch (Error $e) {
  6.             if (!$e->getSourceContext()) {
  7.                 $e->setSourceContext($this->getSourceContext());
  8.             }
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.                 return '';
  2.             });
  3.         }
  4.         try {
  5.             $this->display($context);
  6.         } catch (\Throwable $e) {
  7.             while (ob_get_level() > $level) {
  8.                 ob_end_clean();
  9.             }
  1.      *
  2.      * @throws Error if something went wrong like a thrown exception while rendering the template
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         return $this->load($name)->render($parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.     protected function render(string $view, array $parameters = [], Response $response null): Response
  2.     {
  3.         if ($this->container->has('templating')) {
  4.             @trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.'E_USER_DEPRECATED);
  5.             $content $this->container->get('templating')->render($view$parameters);
  6.         } elseif ($this->container->has('twig')) {
  7.             $content $this->container->get('twig')->render($view$parameters);
  8.         } else {
  9.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  10.         }
Controller->render('@BDMNicolasFrontend/Products/index.html.twig', array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)))) in /home/wwwnicolas/public_html/src/BDM/Nicolas/FrontendBundle/Controller/ProductsController.php (line 177)
  1.             ));
  2.             $this->addData(array('subCategories' => $sub_categories));
  3.         }
  4.         return $this->render('@BDMNicolasFrontend/Products/index.html.twig'$this->getData());
  5.     }
  6.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in /home/wwwnicolas/public_html/public/index.php (line 28)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

RuntimeException

Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.

  1.         if (PHP_SESSION_ACTIVE === session_status()) {
  2.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3.         }
  4.         if (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && headers_sent($file$line)) {
  5.             throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line));
  6.         }
  7.         // ok to try and start the session
  8.         if (!session_start()) {
  9.             throw new \RuntimeException('Failed to start the session.');
  1.         }
  2.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getBag($name)
  5.     {
  6.         $bag $this->storage->getBag($name);
  7.         return method_exists($bag'getBag') ? $bag->getBag() : $bag;
  8.     }
  9.     /**
  1.      *
  2.      * Note that this method was added to help with IDE autocompletion.
  3.      */
  4.     private function getAttributeBag(): AttributeBagInterface
  5.     {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function get($name$default null)
  5.     {
  6.         return $this->getAttributeBag()->get($name$default);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     }
  2.     // Some objects throw exceptions when they have __call, and the method we try
  3.     // to call is not supported. If ignoreStrictCheck is true, we should return null.
  4.     try {
  5.         $ret $object->$method(...$arguments);
  6.     } catch (\BadMethodCallException $e) {
  7.         if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
  8.             return;
  9.         }
  10.         throw $e;
  1.                         <span id=\"cart-count\" class=\"ns-QuickCart-itemLength js-QuickCart-itemLength\">
  2.                         ";
  3.         // line 213
  4.         if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'213$this->source); })()), "session", [], "any"falsefalsefalse213), "get", [=> "number_items"], "method"falsefalsefalse213))) {
  5.             // line 214
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 216
  1.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  2.     {
  3.         try {
  4.             $this->doDisplay($context$blocks);
  5.         } catch (Error $e) {
  6.             if (!$e->getSourceContext()) {
  7.                 $e->setSourceContext($this->getSourceContext());
  8.             }
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.         echo "
  2. ";
  3.         // line 253
  4.         $this->loadTemplate("@BDMNicolasFrontend/Partials/header.html.twig""@BDMNicolasFrontend/layout.html.twig"253)->display($context);
  5.         // line 254
  6.         echo "
  7. ";
  8.         // line 255
  9.         $this->displayBlock('content'$context$blocks);
  1.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  2.     {
  3.         try {
  4.             $this->doDisplay($context$blocks);
  5.         } catch (Error $e) {
  6.             if (!$e->getSourceContext()) {
  7.                 $e->setSourceContext($this->getSourceContext());
  8.             }
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BDMNicolasFrontend/Products/index.html.twig"));
  4.         $this->parent $this->loadTemplate("@BDMNicolasFrontend/layout.html.twig""@BDMNicolasFrontend/Products/index.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
  1.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  2.     {
  3.         try {
  4.             $this->doDisplay($context$blocks);
  5.         } catch (Error $e) {
  6.             if (!$e->getSourceContext()) {
  7.                 $e->setSourceContext($this->getSourceContext());
  8.             }
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  1.                 return '';
  2.             });
  3.         }
  4.         try {
  5.             $this->display($context);
  6.         } catch (\Throwable $e) {
  7.             while (ob_get_level() > $level) {
  8.                 ob_end_clean();
  9.             }
  1.      *
  2.      * @throws Error if something went wrong like a thrown exception while rendering the template
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         return $this->load($name)->render($parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.     protected function render(string $view, array $parameters = [], Response $response null): Response
  2.     {
  3.         if ($this->container->has('templating')) {
  4.             @trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.'E_USER_DEPRECATED);
  5.             $content $this->container->get('templating')->render($view$parameters);
  6.         } elseif ($this->container->has('twig')) {
  7.             $content $this->container->get('twig')->render($view$parameters);
  8.         } else {
  9.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  10.         }
Controller->render('@BDMNicolasFrontend/Products/index.html.twig', array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)))) in /home/wwwnicolas/public_html/src/BDM/Nicolas/FrontendBundle/Controller/ProductsController.php (line 177)
  1.             ));
  2.             $this->addData(array('subCategories' => $sub_categories));
  3.         }
  4.         return $this->render('@BDMNicolasFrontend/Products/index.html.twig'$this->getData());
  5.     }
  6.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in /home/wwwnicolas/public_html/public/index.php (line 28)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Traces 6

[6/6] RuntimeError

Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.").

  at /home/wwwnicolas/public_html/templates/bundles/TwigBundle/Exception/exception_full.html.twig:249
  at Twig\Template->displayWithErrorHandling(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => '', 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:400)
  at Twig\Template->render(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''), array())
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/TemplateWrapper.php:46)
  at Twig\TemplateWrapper->render(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render('@Twig/Exception/exception_full.html.twig', array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bundle/Controller/ExceptionController.php:73)
  at Symfony\Bundle\TwigBundle\Controller\ExceptionController->showAction(object(Request), object(FlattenException), object(Logger))
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/ExceptionListener.php:61)
  at Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:219)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(RuntimeError), object(Request), 1)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:112)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(RuntimeError), object(Request))
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:120)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(RuntimeError))
     (/home/wwwnicolas/public_html/vendor/symfony/error-handler/ErrorHandler.php:599)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(RuntimeError))                

[5/6] RuntimeException

RuntimeException:
Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.

  at /home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:152
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:323)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes')
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:249)
  at Symfony\Component\HttpFoundation\Session\Session->getBag('attributes')
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:271)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:73)
  at Symfony\Component\HttpFoundation\Session\Session->get('number_items')
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1499)
  at twig_get_attribute(object(Environment), object(Source), object(Session), 'get', array('number_items'), 'method', false, false, false, 249)
     (/home/wwwnicolas/public_html/var/cache/prod/twig/54/549fa29e37049774bf91d38942c11e3843c904ef267c2769ec3753935e935dd7.php:424)
  at __TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb->doDisplay(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => '', 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:416)
  at Twig\Template->displayWithErrorHandling(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => '', 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:400)
  at Twig\Template->render(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''), array())
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/TemplateWrapper.php:46)
  at Twig\TemplateWrapper->render(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render('@Twig/Exception/exception_full.html.twig', array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bundle/Controller/ExceptionController.php:73)
  at Symfony\Bundle\TwigBundle\Controller\ExceptionController->showAction(object(Request), object(FlattenException), object(Logger))
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/ExceptionListener.php:61)
  at Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:219)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(RuntimeError), object(Request), 1)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:112)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(RuntimeError), object(Request))
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:120)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(RuntimeError))
     (/home/wwwnicolas/public_html/vendor/symfony/error-handler/ErrorHandler.php:599)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(RuntimeError))                

[4/6] RuntimeError

Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.").

  at /home/wwwnicolas/public_html/templates/bundles/TwigBundle/Exception/exception_full.html.twig:249
  at Twig\Template->displayWithErrorHandling(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => '', 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:400)
  at Twig\Template->render(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''), array())
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/TemplateWrapper.php:46)
  at Twig\TemplateWrapper->render(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render('@Twig/Exception/exception_full.html.twig', array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bundle/Controller/ExceptionController.php:73)
  at Symfony\Bundle\TwigBundle\Controller\ExceptionController->showAction(object(Request), object(FlattenException), object(Logger))
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/ExceptionListener.php:61)
  at Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:219)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(RuntimeError), object(Request), 1)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:91)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/home/wwwnicolas/public_html/public/index.php:28)                

[3/6] RuntimeException

RuntimeException:
Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.

  at /home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:152
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:323)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes')
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:249)
  at Symfony\Component\HttpFoundation\Session\Session->getBag('attributes')
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:271)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:73)
  at Symfony\Component\HttpFoundation\Session\Session->get('number_items')
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1499)
  at twig_get_attribute(object(Environment), object(Source), object(Session), 'get', array('number_items'), 'method', false, false, false, 249)
     (/home/wwwnicolas/public_html/var/cache/prod/twig/54/549fa29e37049774bf91d38942c11e3843c904ef267c2769ec3753935e935dd7.php:424)
  at __TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb->doDisplay(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => '', 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:416)
  at Twig\Template->displayWithErrorHandling(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => '', 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_4c4ccbd6b2292d398d99df7adfb36ffcd41e6dfe4edaff1d37205670cc7bf8cb), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:400)
  at Twig\Template->render(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''), array())
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/TemplateWrapper.php:46)
  at Twig\TemplateWrapper->render(array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render('@Twig/Exception/exception_full.html.twig', array('status_code' => 500, 'status_text' => 'Internal Server Error', 'exception' => object(FlattenException), 'logger' => object(Logger), 'currentContent' => ''))
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bundle/Controller/ExceptionController.php:73)
  at Symfony\Bundle\TwigBundle\Controller\ExceptionController->showAction(object(Request), object(FlattenException), object(Logger))
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/ExceptionListener.php:61)
  at Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:219)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(RuntimeError), object(Request), 1)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:91)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/home/wwwnicolas/public_html/public/index.php:28)                

[2/6] RuntimeError

Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.").

  at /home/wwwnicolas/public_html/templates/bundles/BDMNicolasFrontendBundle/Partials/header.html.twig:213
  at Twig\Template->displayWithErrorHandling(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array())
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)))
     (/home/wwwnicolas/public_html/var/cache/prod/twig/e3/e34f3da4ef971f0071d45423dc74123ff64ca78a1009c538f50489837ac02706.php:342)
  at __TwigTemplate_3419aac7db4caafcd79368fc704b244562d90dc85850e8027412368682c36efa->doDisplay(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:416)
  at Twig\Template->displayWithErrorHandling(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/var/cache/prod/twig/1e/1e9198fdfca64ec1662b3f4165ba21fe132b91e17bd21e34ac5fe2bd542f4ef7.php:47)
  at __TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d->doDisplay(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:416)
  at Twig\Template->displayWithErrorHandling(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory))))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:400)
  at Twig\Template->render(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory))))
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bridge/TwigEngine.php:54)
  at Symfony\Bridge\Twig\TwigEngine->render('@BDMNicolasFrontend/Products/index.html.twig', array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory))))
     (/home/wwwnicolas/public_html/vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233)
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('@BDMNicolasFrontend/Products/index.html.twig', array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory))))
     (/home/wwwnicolas/public_html/src/BDM/Nicolas/FrontendBundle/Controller/ProductsController.php:177)
  at BDM\Nicolas\FrontendBundle\Controller\ProductsController->productsByWeighAction(array('weigh' => '33'), 'epicerie-fine', '8')
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/home/wwwnicolas/public_html/public/index.php:28)                

[1/6] RuntimeException

RuntimeException:
Failed to start the session because headers have already been sent by "/home/wwwnicolas/public_html/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182.

  at /home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:152
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:323)
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes')
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:249)
  at Symfony\Component\HttpFoundation\Session\Session->getBag('attributes')
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:271)
  at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:73)
  at Symfony\Component\HttpFoundation\Session\Session->get('number_items')
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1499)
  at twig_get_attribute(object(Environment), object(Source), object(Session), 'get', array('number_items'), 'method', false, false, false, 213)
     (/home/wwwnicolas/public_html/var/cache/prod/twig/63/631cc9612d9b63a8a674dabb9afce88b2759f079c314fc7b2b3f8b138459f196.php:352)
  at __TwigTemplate_f399acd065f926e8b8008f2e922631ab6576f6536d78307289c2a3683099527f->doDisplay(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array())
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:416)
  at Twig\Template->displayWithErrorHandling(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array())
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)))
     (/home/wwwnicolas/public_html/var/cache/prod/twig/e3/e34f3da4ef971f0071d45423dc74123ff64ca78a1009c538f50489837ac02706.php:342)
  at __TwigTemplate_3419aac7db4caafcd79368fc704b244562d90dc85850e8027412368682c36efa->doDisplay(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:416)
  at Twig\Template->displayWithErrorHandling(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/var/cache/prod/twig/1e/1e9198fdfca64ec1662b3f4165ba21fe132b91e17bd21e34ac5fe2bd542f4ef7.php:47)
  at __TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d->doDisplay(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:416)
  at Twig\Template->displayWithErrorHandling(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory)), 'app' => object(AppVariable)), array('content' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_0c597890a12a97c930078ceb96126498bb7180f1d60810ef0fd247cb61352f0d), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:384)
  at Twig\Template->display(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory))))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:400)
  at Twig\Template->render(array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory))))
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bridge/TwigEngine.php:54)
  at Symfony\Bridge\Twig\TwigEngine->render('@BDMNicolasFrontend/Products/index.html.twig', array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory))))
     (/home/wwwnicolas/public_html/vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233)
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('@BDMNicolasFrontend/Products/index.html.twig', array('page_title' => 'Categorie : Épicerie fine', 'products' => object(SlidingPagination), 'category' => object(ProductCategory), 'weighs' => array('', '50', '110', '130', '45', '100', '200', '167', '92', '280', '490', '560', '150', '65', '140', '90', '25', '33'), 'subCategories' => array(object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory), object(ProductSubCategory))))
     (/home/wwwnicolas/public_html/src/BDM/Nicolas/FrontendBundle/Controller/ProductsController.php:177)
  at BDM\Nicolas\FrontendBundle\Controller\ProductsController->productsByWeighAction(array('weigh' => '33'), 'epicerie-fine', '8')
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/home/wwwnicolas/public_html/public/index.php:28)