^ 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 {#1570
    -route: "_products_by_weigh"
    -params: array:3 [
      "category_id" => "8"
      "category_slug" => "epicerie-fine"
      "weigh" => "130"
    ]
    -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:3 [
      0 => BDM\Nicolas\BackendBundle\Entity\Product {#1766
        -id: 1105
        -label: "Moutarde au piment d'Espelette"
        -careLevel: null
        -ref: "REF1787"
        -seen: 416
        -serviceTemperature: null
        -regularPrice: 66.0
        -strikePrice: 66.0
        -loyalityPrice: 66.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Faite à base d'épices basque, cette recette permet d'exprimer la typicité du piment d'Espelette, et de relever cette moutarde en exhaussant tous ses arômes. "
        #slug: "moutarde-au-piment-d-espelette"
        #weigh: "130"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#1731
          +__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 {#1766}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#273 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1556 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1813
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#1828
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1766}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#273 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1764 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1827
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#1840
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1766}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#273 …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 {#1766}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#273 …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: 1106
        -label: "Moutarde Poivre à la truffe"
        -careLevel: null
        -ref: "REF1657"
        -seen: 343
        -serviceTemperature: null
        -regularPrice: 66.0
        -strikePrice: 66.0
        -loyalityPrice: 66.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Un délice pour les amateurs de moutarde avec son piquant léger soutenu par la puissance de l'arôme truffe noire. Cette alliance parfaite fera de cette moutarde l'élément incontournable des tables de fêtes.<br />"
        #slug: "moutarde-poivre-a-la-truffe"
        #weigh: "130"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#1731 …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 {#273 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1556 …}
          -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 {#273 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1764 …}
          -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 {#273 …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 {#273 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1837 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1860
            -elements: []
          }
          #initialized: false
        }
      }
      2 => BDM\Nicolas\BackendBundle\Entity\Product {#1861
        -id: 1107
        -label: "Moutarde saveur truffe blanche à l’huile d’olive"
        -careLevel: null
        -ref: "REF1658"
        -seen: 482
        -serviceTemperature: null
        -regularPrice: 66.0
        -strikePrice: 66.0
        -loyalityPrice: 66.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: ""
        -characteristicsDetails: ""
        -characteristics2: ""
        -state: 1
        -appelation: ""
        -cepage: null
        -description: "Notre moutarde à la truffe blanche permettra de conserver toutes les saveurs de vos plats. Délicate et éxquise , elle donnera vie à vos tables et sublimera vos viandes. <br /><br /><br />\r\n"
        #slug: "moutarde-saveur-truffe-blanche-a-l-huile-d-olive"
        #weigh: "130"
        #vintage: ""
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#1731 …2}
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#1862
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1861}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#273 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1556 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1863
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#1864
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1861}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#273 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1764 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1865
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#1866
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1861}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#273 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1825 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1867
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#1868
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#1861}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#273 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1837 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#1869
            -elements: []
          }
          #initialized: false
        }
      }
    ]
    #totalCount: 3
    #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 {#1683
    -id: 8
    -label: "Épicerie fine"
    -code: "comtesse-du-barry"
    -description: "comtesse-du-barry"
    -slug: "epicerie-fine"
    -isActive: 1
    #subcategories: Doctrine\ORM\PersistentCollection {#1662
      -snapshot: []
      -owner: BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1683}
      -association: array:15 [ …15]
      -em: Doctrine\ORM\EntityManager {#273 …11}
      -backRefFieldName: "category"
      -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1689 …}
      -isDirty: false
      #collection: Doctrine\Common\Collections\ArrayCollection {#1610
        -elements: []
      }
      #initialized: false
    }
    #banners: Doctrine\ORM\PersistentCollection {#1620
      -snapshot: []
      -owner: BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1683}
      -association: array:15 [ …15]
      -em: Doctrine\ORM\EntityManager {#273 …11}
      -backRefFieldName: "category"
      -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1613 …}
      -isDirty: false
      #collection: Doctrine\Common\Collections\ArrayCollection {#1619
        -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()

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()

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.     }
  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.     }
  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 278
  4.         $this->loadTemplate("@BDMNicolasFrontend/Partials/header.html.twig""@BDMNicolasFrontend/layout.html.twig"278)->display($context);
  5.         // line 279
  6.         echo "
  7. ";
  8.         // line 280
  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.         }
  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.     }
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

RuntimeException

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

  1.         if (\PHP_SESSION_ACTIVE === session_status()) {
  2.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3.         }
  4.         if (filter_var(ini_get('session.use_cookies'), \FILTER_VALIDATE_BOOLEAN) && headers_sent($file$line)) {
  5.             throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line));
  6.         }
  7.         // ok to try and start the session
  8.         if (!session_start()) {
  9.             throw new \RuntimeException('Failed to start the session.');
  1.         }
  2.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getBag($name)
  5.     {
  6.         $bag $this->storage->getBag($name);
  7.         return method_exists($bag'getBag') ? $bag->getBag() : $bag;
  8.     }
  9.     /**
  1.      *
  2.      * Note that this method was added to help with IDE autocompletion.
  3.      */
  4.     private function getAttributeBag(): AttributeBagInterface
  5.     {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function get($name$default null)
  5.     {
  6.         return $this->getAttributeBag()->get($name$default);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     }
  2.     // Some objects throw exceptions when they have __call, and the method we try
  3.     // to call is not supported. If ignoreStrictCheck is true, we should return null.
  4.     try {
  5.         $ret $object->$method(...$arguments);
  6.     } catch (\BadMethodCallException $e) {
  7.         if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
  8.             return;
  9.         }
  10.         throw $e;
  1.                         <span id=\"cart-count\" class=\"ns-QuickCart-itemLength js-QuickCart-itemLength\">
  2.                         ";
  3.         // line 213
  4.         if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'213$this->source); })()), "session", [], "any"falsefalsefalse213), "get", [=> "number_items"], "method"falsefalsefalse213))) {
  5.             // line 214
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 216
  1.     }
  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 278
  4.         $this->loadTemplate("@BDMNicolasFrontend/Partials/header.html.twig""@BDMNicolasFrontend/layout.html.twig"278)->display($context);
  5.         // line 279
  6.         echo "
  7. ";
  8.         // line 280
  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.         }
  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.     }
  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()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bundle/Controller/ExceptionController.php:73)
  at Symfony\Bundle\TwigBundle\Controller\ExceptionController->showAction()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/ExceptionListener.php:61)
  at Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:219)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:112)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:129)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/home/wwwnicolas/public_html/vendor/symfony/error-handler/ErrorHandler.php:601)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()                

[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()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:249)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (/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()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1507)
  at twig_get_attribute()
     (/home/wwwnicolas/public_html/var/cache/prod/twig/50/509600d30ef91dff887ce77eaecf383929d4ab16d96f9e80b486986e7c8fcd08.php:428)
  at __TwigTemplate_cbea7b6012c74b5550bbb8d0e86b7bb7369960d9450a3d9a259e1594a91e2ecc->doDisplay()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bundle/Controller/ExceptionController.php:73)
  at Symfony\Bundle\TwigBundle\Controller\ExceptionController->showAction()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/ExceptionListener.php:61)
  at Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:219)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:112)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:129)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/home/wwwnicolas/public_html/vendor/symfony/error-handler/ErrorHandler.php:601)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()                

[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()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bundle/Controller/ExceptionController.php:73)
  at Symfony\Bundle\TwigBundle\Controller\ExceptionController->showAction()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/ExceptionListener.php:61)
  at Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:219)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:91)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/home/wwwnicolas/public_html/public/index.php:31)                

[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()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:249)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (/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()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1507)
  at twig_get_attribute()
     (/home/wwwnicolas/public_html/var/cache/prod/twig/50/509600d30ef91dff887ce77eaecf383929d4ab16d96f9e80b486986e7c8fcd08.php:428)
  at __TwigTemplate_cbea7b6012c74b5550bbb8d0e86b7bb7369960d9450a3d9a259e1594a91e2ecc->doDisplay()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bundle/Controller/ExceptionController.php:73)
  at Symfony\Bundle\TwigBundle\Controller\ExceptionController->showAction()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/EventListener/ExceptionListener.php:61)
  at Symfony\Component\HttpKernel\EventListener\ExceptionListener->onKernelException()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:219)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:91)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/home/wwwnicolas/public_html/public/index.php:31)                

[2/6] RuntimeError

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

  at /home/wwwnicolas/public_html/templates/bundles/BDMNicolasFrontendBundle/Partials/header.html.twig:213
  at Twig\Template->displayWithErrorHandling()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/var/cache/prod/twig/94/94cca4342ddc9c670009a07146289d505b1c85c63ba14ac69d3e416b979362a2.php:362)
  at __TwigTemplate_aebba7f20537d264f5732920d89430d6031a3625af593c54866733247584692f->doDisplay()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/var/cache/prod/twig/be/be25af5b8d6b5fbe53be25c694298b145a3814dfb9e2ab5cc1dd4cf5e5929d88.php:47)
  at __TwigTemplate_6f38ab640e66b41f40ee0d3866f1c112d11de4f718ba9f4626684482d7731941->doDisplay()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bridge/TwigEngine.php:54)
  at Symfony\Bridge\Twig\TwigEngine->render()
     (/home/wwwnicolas/public_html/vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233)
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->render()
     (/home/wwwnicolas/public_html/src/BDM/Nicolas/FrontendBundle/Controller/ProductsController.php:177)
  at BDM\Nicolas\FrontendBundle\Controller\ProductsController->productsByWeighAction()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/home/wwwnicolas/public_html/public/index.php:31)                

[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()
     (/home/wwwnicolas/public_html/vendor/symfony/http-foundation/Session/Session.php:249)
  at Symfony\Component\HttpFoundation\Session\Session->getBag()
     (/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()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Extension/CoreExtension.php:1507)
  at twig_get_attribute()
     (/home/wwwnicolas/public_html/var/cache/prod/twig/47/47356f0c70f1f5d99a1ac797df8ac80bc2153a60844175cf6571bd98abb53c7d.php:352)
  at __TwigTemplate_12fd940f17210092626bfabaee6ff2e168eb38c8bfeb46503afdab8c681c19a2->doDisplay()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/var/cache/prod/twig/94/94cca4342ddc9c670009a07146289d505b1c85c63ba14ac69d3e416b979362a2.php:362)
  at __TwigTemplate_aebba7f20537d264f5732920d89430d6031a3625af593c54866733247584692f->doDisplay()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/var/cache/prod/twig/be/be25af5b8d6b5fbe53be25c694298b145a3814dfb9e2ab5cc1dd4cf5e5929d88.php:47)
  at __TwigTemplate_6f38ab640e66b41f40ee0d3866f1c112d11de4f718ba9f4626684482d7731941->doDisplay()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/wwwnicolas/public_html/vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (/home/wwwnicolas/public_html/vendor/symfony/twig-bridge/TwigEngine.php:54)
  at Symfony\Bridge\Twig\TwigEngine->render()
     (/home/wwwnicolas/public_html/vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233)
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->render()
     (/home/wwwnicolas/public_html/src/BDM/Nicolas/FrontendBundle/Controller/ProductsController.php:177)
  at BDM\Nicolas\FrontendBundle\Controller\ProductsController->productsByWeighAction()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/wwwnicolas/public_html/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/home/wwwnicolas/public_html/public/index.php:31)