^ 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 {#1929
    -route: "_products_by_weigh"
    -params: array:3 [
      "category_id" => "8"
      "category_slug" => "epicerie-fine"
      "weigh" => "140"
    ]
    -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:9 [
      0 => BDM\Nicolas\BackendBundle\Entity\Product {#2038
        -id: 1125
        -label: "Foie gras de canard entier "
        -careLevel: null
        -ref: "REF1774"
        -seen: 335
        -serviceTemperature: null
        -regularPrice: 219.0
        -strikePrice: 229.0
        -loyalityPrice: 229.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: """
          Des foies gras de canard entiers préparés à la main, du sel de Guérande et du poivre. L'élevage est fait en France.<br /><br /><br /><br />\r\n
          En bouche, ils dévoilent une saveur franche et un goût puissant. Laissez-vous sublimer par un produit authentique.
          """
        #slug: "foie-gras-de-canard-entier"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2247
          +__isInitialized__: false
          -id: 40
          -label: null
          -code: null
          -slug: null
          -isActive: null
          #category: null
          #products: null
           …2
        }
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2268
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2038}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2270
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2314
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2038}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2316
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2355
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2038}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2357
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2415
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2038}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2413
            -elements: []
          }
          #initialized: false
        }
      }
      1 => BDM\Nicolas\BackendBundle\Entity\Product {#2412
        -id: 1131
        -label: "Rillettes pur canard à l'ancienne"
        -careLevel: null
        -ref: "REF1630"
        -seen: 210
        -serviceTemperature: null
        -regularPrice: 79.0
        -strikePrice: 79.0
        -loyalityPrice: 79.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Moelleuses, cuites à point, onctueuses  et effilochées à la main. Idéal pour les entrées en toast."
        #slug: "rillettes-pur-canard-a-l-ancienne"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2411
          +__isInitialized__: false
          -id: 42
          -label: null
          -code: null
          -slug: null
          -isActive: null
          #category: null
          #products: null
           …2
        }
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2410
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2412}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2409
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2408
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2412}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2407
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2406
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2412}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2405
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2404
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2412}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2403
            -elements: []
          }
          #initialized: false
        }
      }
      2 => BDM\Nicolas\BackendBundle\Entity\Product {#2402
        -id: 1132
        -label: "Rillettes de poulet aux cèpes"
        -careLevel: null
        -ref: "REF1628"
        -seen: 228
        -serviceTemperature: null
        -regularPrice: 109.0
        -strikePrice: 109.0
        -loyalityPrice: 109.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Au goût de cèpes. une petite note de fruit sec torréfié, et une saveur unique."
        #slug: "rillettes-de-poulet-aux-cepes"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2411 …2}
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2401
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2402}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2400
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2399
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2402}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2398
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2397
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2402}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2396
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2395
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2402}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2394
            -elements: []
          }
          #initialized: false
        }
      }
      3 => BDM\Nicolas\BackendBundle\Entity\Product {#2393
        -id: 1133
        -label: "Rillettes de canard au foie gras de canard 20 %"
        -careLevel: null
        -ref: "REF1627"
        -seen: 226
        -serviceTemperature: null
        -regularPrice: 109.0
        -strikePrice: 109.0
        -loyalityPrice: 109.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Emblématique de notre Maison, avec une touche d’originalité apportée par les cèpes et les girolles. À déguster avec des tranches de pain de  toastées."
        #slug: "rillettes-de-canard-au-foie-gras-de-canard-20"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2411 …2}
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2372
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2393}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2368
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2419
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2393}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2420
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2421
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2393}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2422
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2423
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2393}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2424
            -elements: []
          }
          #initialized: false
        }
      }
      4 => BDM\Nicolas\BackendBundle\Entity\Product {#2425
        -id: 1134
        -label: "Terrine de canard à l'orange"
        -careLevel: null
        -ref: "REF1625"
        -seen: 218
        -serviceTemperature: null
        -regularPrice: 82.0
        -strikePrice: 82.0
        -loyalityPrice: 82.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Ce grand classique de la gastronomie, aromatisé par une pointe de liqueur à l'orange, l'alliance parfaitement équilibré du sucré, du salé et du corsé. Idéal pour vos buffets, à servir avec une salade de pointes d'asperges, du jus d'orange et parsemée de ciboulette hachée."
        #slug: "terrine-de-canard-a-l-orange"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2426
          +__isInitialized__: false
          -id: 43
          -label: null
          -code: null
          -slug: null
          -isActive: null
          #category: null
          #products: null
           …2
        }
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2427
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2425}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2428
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2429
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2425}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2430
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2431
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2425}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2432
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2433
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2425}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2434
            -elements: []
          }
          #initialized: false
        }
      }
      5 => BDM\Nicolas\BackendBundle\Entity\Product {#2435
        -id: 1135
        -label: "Terrine de canard forestière"
        -careLevel: null
        -ref: "REF1626"
        -seen: 247
        -serviceTemperature: null
        -regularPrice: 82.0
        -strikePrice: 82.0
        -loyalityPrice: 82.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Terrine de canard typique du  crée au Sud-Ouest, un classique chez Comtesse du Barry,  une touche unique est rajouté par les cèpes et les girolles."
        #slug: "terrine-de-canard-forestiere"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2426 …2}
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2436
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2435}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2437
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2438
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2435}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2439
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2440
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2435}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2441
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2442
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2435}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2443
            -elements: []
          }
          #initialized: false
        }
      }
      6 => BDM\Nicolas\BackendBundle\Entity\Product {#2444
        -id: 1136
        -label: "Terrine de canard au poivre vert"
        -careLevel: null
        -ref: "REF1777"
        -seen: 277
        -serviceTemperature: null
        -regularPrice: 82.0
        -strikePrice: 82.0
        -loyalityPrice: 82.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "Le poivre vert choisi  est doux, moins piquant que le poivre noir et très parfumé. Il s'accorde particulièrement bien aux terrines."
        #slug: "terrine-de-canard-au-poivre-vert"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2426 …2}
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2445
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2444}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2446
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2447
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2444}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2448
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2449
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2444}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2450
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2451
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2444}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2452
            -elements: []
          }
          #initialized: false
        }
      }
      7 => BDM\Nicolas\BackendBundle\Entity\Product {#2453
        -id: 1137
        -label: "CRÈME AU FOIE DE CANARD"
        -careLevel: null
        -ref: "REF1779"
        -seen: 234
        -serviceTemperature: null
        -regularPrice: 89.0
        -strikePrice: 89.0
        -loyalityPrice: 89.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "A déguster en apéritis sur des toasts, une mousse crémeuse à base de foie gras de canard et de chair de porc, légèrement épicée et parfumée au Monbazillac."
        #slug: "creme-au-foie-de-canard"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2426 …2}
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2454
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2453}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2455
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2456
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2453}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2457
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2458
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2453}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2459
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2460
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2453}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2461
            -elements: []
          }
          #initialized: false
        }
      }
      8 => BDM\Nicolas\BackendBundle\Entity\Product {#2462
        -id: 1138
        -label: "Terrine de magret de canard "
        -careLevel: null
        -ref: "REF1778"
        -seen: 318
        -serviceTemperature: null
        -regularPrice: 82.0
        -strikePrice: 82.0
        -loyalityPrice: 82.0
        -volume: null
        -corps: null
        -fraicheur: null
        -evolution: null
        -style: null
        -characteristics1: null
        -characteristicsDetails: null
        -characteristics2: null
        -state: 1
        -appelation: null
        -cepage: null
        -description: "En entré, à servir avec du vin rouge ou rosé, cette terrine de magret de canard ravira vos papilles."
        #slug: "terrine-de-magret-de-canard"
        #weigh: "140"
        #vintage: null
        -isNew: 0
        #brand: null
        #region: null
        #country: null
        #sub_category: Proxies\__CG__\BDM\Nicolas\BackendBundle\Entity\ProductSubCategory {#2426 …2}
        #color: null
        #taste: null
        #images: Doctrine\ORM\PersistentCollection {#2463
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2462}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "product"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2245 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2464
            -elements: []
          }
          #initialized: false
        }
        #alliances: Doctrine\ORM\PersistentCollection {#2465
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2462}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2272 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2466
            -elements: []
          }
          #initialized: false
        }
        #articles: Doctrine\ORM\PersistentCollection {#2467
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2462}
          -association: array:20 [ …20]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2318 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2468
            -elements: []
          }
          #initialized: false
        }
        #orderProduct: Doctrine\ORM\PersistentCollection {#2469
          -snapshot: []
          -owner: BDM\Nicolas\BackendBundle\Entity\Product {#2462}
          -association: array:15 [ …15]
          -em: Doctrine\ORM\EntityManager {#337 …11}
          -backRefFieldName: "products"
          -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#2359 …}
          -isDirty: false
          #collection: Doctrine\Common\Collections\ArrayCollection {#2470
            -elements: []
          }
          #initialized: false
        }
      }
    ]
    #totalCount: 9
    #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 {#1805
    -id: 8
    -label: "Épicerie fine"
    -code: "comtesse-du-barry"
    -description: "comtesse-du-barry"
    -slug: "epicerie-fine"
    -isActive: 1
    #subcategories: Doctrine\ORM\PersistentCollection {#1811
      -snapshot: []
      -owner: BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1805}
      -association: array:15 [ …15]
      -em: Doctrine\ORM\EntityManager {#337 …11}
      -backRefFieldName: "category"
      -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1802 …}
      -isDirty: false
      #collection: Doctrine\Common\Collections\ArrayCollection {#1870
        -elements: []
      }
      #initialized: false
    }
    #banners: Doctrine\ORM\PersistentCollection {#1831
      -snapshot: []
      -owner: BDM\Nicolas\BackendBundle\Entity\ProductCategory {#1805}
      -association: array:15 [ …15]
      -em: Doctrine\ORM\EntityManager {#337 …11}
      -backRefFieldName: "category"
      -typeClass: Doctrine\ORM\Mapping\ClassMetadata {#1867 …}
      -isDirty: false
      #collection: Doctrine\Common\Collections\ArrayCollection {#1833
        -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 249
  4.         if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'249$this->source); })()), "session", [], "any"falsefalsefalse249), "get", [=> "number_items"], "method"falsefalsefalse249))) {
  5.             // line 250
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 252
  1.     }
  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 249
  4.         if ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'249$this->source); })()), "session", [], "any"falsefalsefalse249), "get", [=> "number_items"], "method"falsefalsefalse249))) {
  5.             // line 250
  6.             echo "                            0
  7.                         ";
  8.         } else {
  9.             // line 252
  1.     }
  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 267
  4.         $this->loadTemplate("@BDMNicolasFrontend/Partials/header.html.twig""@BDMNicolasFrontend/layout.html.twig"267)->display($context);
  5.         // line 268
  6.         echo "
  7. ";
  8.         // line 269
  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.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BDMNicolasFrontend/Products/index.html.twig"));
  3.         $this->parent $this->loadTemplate("@BDMNicolasFrontend/layout.html.twig""@BDMNicolasFrontend/Products/index.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  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 267
  4.         $this->loadTemplate("@BDMNicolasFrontend/Partials/header.html.twig""@BDMNicolasFrontend/layout.html.twig"267)->display($context);
  5.         // line 268
  6.         echo "
  7. ";
  8.         // line 269
  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.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BDMNicolasFrontend/Products/index.html.twig"));
  3.         $this->parent $this->loadTemplate("@BDMNicolasFrontend/layout.html.twig""@BDMNicolasFrontend/Products/index.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  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:249
  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/dev/twig/d9/d9efad54e52c4607c6256da54dff2a887f1441c4a050f4a6eb00e1d7781131fc.php:427)
  at __TwigTemplate_fb55ee29c0ee3268a917a755e4d3f56da6b93f7b8f79b849bd9438388c93a3d1->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:249
  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/dev/twig/d9/d9efad54e52c4607c6256da54dff2a887f1441c4a050f4a6eb00e1d7781131fc.php:427)
  at __TwigTemplate_fb55ee29c0ee3268a917a755e4d3f56da6b93f7b8f79b849bd9438388c93a3d1->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/dev/twig/06/06b0dc94ada9eaa566a0f114f03e5eb16367cd3bb3907d3d1914688de43b5c08.php:354)
  at __TwigTemplate_aa6266c04f8cfd850b91d6e818114504622ff523ddc8c810ecaecd9fbd73bc8a->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/dev/twig/bf/bf5a4cfefc68649966ab34fee73544526712db77887bb3538188104cddede5e4.php:50)
  at __TwigTemplate_45341e478e21116a1d57588bd7c00ef59e2149700f75249becb52146cd5324f0->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/dev/twig/dd/ddb4da9ef204fd230b47ff9eae9b4786e56851c27fdc647abe32c012ee8d3a6b.php:355)
  at __TwigTemplate_dd7fdf5102d45d4692deaa6e033ea06be13709d6c35fc43d0b96289305e4b311->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/dev/twig/06/06b0dc94ada9eaa566a0f114f03e5eb16367cd3bb3907d3d1914688de43b5c08.php:354)
  at __TwigTemplate_aa6266c04f8cfd850b91d6e818114504622ff523ddc8c810ecaecd9fbd73bc8a->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/dev/twig/bf/bf5a4cfefc68649966ab34fee73544526712db77887bb3538188104cddede5e4.php:50)
  at __TwigTemplate_45341e478e21116a1d57588bd7c00ef59e2149700f75249becb52146cd5324f0->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)