^ 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" => "110"
    ]
    -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:2 [
      0 => BDM\Nicolas\BackendBundle\Entity\Product {#1765
        -id: 1103
        -label: "Confit d'oignons"
        -careLevel: null
        -ref: "REF1619"
        -seen: 713
        -serviceTemperature: null
        -regularPrice: 77.0
        -strikePrice: 77.0
        -loyalityPrice: 77.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "À déguster avec du  foie gras, de la viande ou des pommes de terre sautées. Douce et épicée, cette confiture d'oignons contient des morceaux d'oignons hachés pour améliorer sa consistance."
        #slug: "confit-d-oignons"
        #weigh: "110"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#1559
          +__isInitialized__: false
          -id: 37
          -label: null
          -code: null
          -slug: null
          -isActive: null
          #category: null
          #products: null
           …2
        }
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#1812
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1765}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#322 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1761 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1813
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#1828
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1765}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#322 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1544 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1827
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#1840
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1765}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#322 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1825 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1839
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#1849
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1765}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#322 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1837 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1848
            -elements: []
          }
          #initialized: false
        }
      }
      1 => BDM\Nicolas\BackendBundle\Entity\Product {#1847
        -id: 1104
        -label: "Chutney de figues"
        -careLevel: null
        -ref: "REF1775"
        -seen: 560
        -serviceTemperature: null
        -regularPrice: 77.0
        -strikePrice: 77.0
        -loyalityPrice: 77.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Les figues violettes sont choisies avec soin et sont préparées selon la tradition dans un mélange de vinaigre et de miel, avec une cuisson à l'ancienne par petites quantités tout en privilégiant la qualité."
        #slug: "chutney-de-figues"
        #weigh: "110"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#1559 …2}
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#1846
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1847}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#322 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1761 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1854
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#1855
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1847}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#322 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1544 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1856
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#1857
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1847}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#322 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1825 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1858
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#1859
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1847}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#322 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1837 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1860
            -elements: []
          }
          #initialized: false
        }
      }
    ]
    #totalCount: 2
    #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 {#1697
    -id: 8
    -label: "Épicerie fine"
    -code: "comtesse-du-barry"
    -description: "comtesse-du-barry"
    -slug: "epicerie-fine"
    -isActive: 0
    #subcategories: Doctrine\ORM\PersistentCollection {#1668
      -snapshot: []
      -owner: BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1697}
      -association: array:15 [ …15]
      -em: Doctrine\ORM\EntityManager {#322 …11}
      -backRefFieldName: "category"
      -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1673 …}
      -isDirty: false
      #collection: Doctrine\Common\Collections\ArrayCollection {#1616
        -elements: []
      }
      #initialized: false
    }
    #banners: Doctrine\ORM\PersistentCollection {#1626
      -snapshot: []
      -owner: BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1697}
      -association: array:15 [ …15]
      -em: Doctrine\ORM\EntityManager {#322 …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.     {
  9.         $level ob_get_level();
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
  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' => 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 601)
  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 256
  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.'256$this->source); })()), "session", [], "any"falsefalsefalse256), "get", [=> "number_items"], "method"falsefalsefalse256))) {
  5.             // line 257
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 259
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
  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.     {
  9.         $level ob_get_level();
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
  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' => 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 601)
  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.     {
  9.         $level ob_get_level();
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
  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' => 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 30)
  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 256
  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.'256$this->source); })()), "session", [], "any"falsefalsefalse256), "get", [=> "number_items"], "method"falsefalsefalse256))) {
  5.             // line 257
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 259
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
  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.     {
  9.         $level ob_get_level();
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
  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' => 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 30)
  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.     {
  9.         $level ob_get_level();
  1.         echo "
  2. ";
  3.         // line 290
  4.         $this->loadTemplate("@BDMNicolasFrontend/Partials/header.html.twig""@BDMNicolasFrontend/layout.html.twig"290)->display($context);
  5.         // line 291
  6.         echo "
  7. ";
  8.         // line 292
  9.         $this->displayBlock('content'$context$blocks);
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
  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.     {
  9.         $level ob_get_level();
  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.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
  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.     {
  9.         $level ob_get_level();
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  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 188)
  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 30)
  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 219
  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.'219$this->source); })()), "session", [], "any"falsefalsefalse219), "get", [=> "number_items"], "method"falsefalsefalse219))) {
  5.             // line 220
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 222
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
  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.     {
  9.         $level ob_get_level();
  1.         echo "
  2. ";
  3.         // line 290
  4.         $this->loadTemplate("@BDMNicolasFrontend/Partials/header.html.twig""@BDMNicolasFrontend/layout.html.twig"290)->display($context);
  5.         // line 291
  6.         echo "
  7. ";
  8.         // line 292
  9.         $this->displayBlock('content'$context$blocks);
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
  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.     {
  9.         $level ob_get_level();
  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.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
  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.     {
  9.         $level ob_get_level();
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  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 188)
  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 30)
  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:256
  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_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  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:390)
  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:45)
  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:129)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(RuntimeError))
     (/home/wwwnicolas/public_html/vendor/symfony/error-handler/ErrorHandler.php:601)
  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:1507)
  at twig_get_attribute(object(Environment), object(Source), object(Session), 'get', array('number_items'), 'method', false, false, false, 256)
     (/home/wwwnicolas/public_html/var/cache/prod/twig/30/306178379a64fe2fbee278f304257240baa1c2c5b58342441d6ad78d4f244a26.php:428)
  at __TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172->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_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  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_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  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:390)
  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:45)
  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:129)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(RuntimeError))
     (/home/wwwnicolas/public_html/vendor/symfony/error-handler/ErrorHandler.php:601)
  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:256
  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_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  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:390)
  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:45)
  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:30)                

[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:1507)
  at twig_get_attribute(object(Environment), object(Source), object(Session), 'get', array('number_items'), 'method', false, false, false, 256)
     (/home/wwwnicolas/public_html/var/cache/prod/twig/30/306178379a64fe2fbee278f304257240baa1c2c5b58342441d6ad78d4f244a26.php:428)
  at __TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172->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_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  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_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_e736f23043d2c7cef1fac98b2e5a99e9f0fc4b2757eb5ab71977eb063bfa4172), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  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:390)
  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:45)
  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:30)                

[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:219
  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:378)
  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/27/276055d83cff3705a4445cd2afc6ea663d184b907c87ef4ea4ed0abf443ab261.php:386)
  at __TwigTemplate_bc701a73d8c96341a2fbd56448c14699a721d984c663fea8ce18c63c187b3c73->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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/var/cache/prod/twig/a6/a641728c0511095243cbedeb9c7471e0755674b96e5ffd23ec5ab929e7330e9c.php:47)
  at __TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757->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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  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:390)
  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:188)
  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:30)                

[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:1507)
  at twig_get_attribute(object(Environment), object(Source), object(Session), 'get', array('number_items'), 'method', false, false, false, 219)
     (/home/wwwnicolas/public_html/var/cache/prod/twig/24/24d7a839ae1abac342f498008686c35e05c0d79c89b306291c4cb04ce0dae9cc.php:346)
  at __TwigTemplate_ca2823c7b17529bb792108c361f5da700f03de2b4c45876cfb457b1e31e83ab7->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:405)
  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:378)
  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/27/276055d83cff3705a4445cd2afc6ea663d184b907c87ef4ea4ed0abf443ab261.php:386)
  at __TwigTemplate_bc701a73d8c96341a2fbd56448c14699a721d984c663fea8ce18c63c187b3c73->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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'content' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/var/cache/prod/twig/a6/a641728c0511095243cbedeb9c7471e0755674b96e5ffd23ec5ab929e7330e9c.php:47)
  at __TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757->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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  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_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_content'), 'front_end_css' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_css'), 'front_end_js' => array(object(__TwigTemplate_3bec65d981b15bdcffcf9df225cbf197b42fc0d9fd2fda51386c6ca2a873b757), 'block_front_end_js')))
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  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:390)
  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:188)
  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:30)