https://primantilles.com/product/legc/choux-de-bruxelles_11656

ProductController :: productAction

Request

GET Parameters

No GET parameters

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"App\Controller\ProductController::productAction"
_firewall_context
"security.firewall.map.context.main"
_links
Fig\Link\GenericLinkProvider {#3423
  -links: [
    "0000000048bb330a00000000119a2639" => Fig\Link\Link {#3422
      -href: "https://primantilles.com/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => true
      ]
      -attributes: []
    }
  ]
}
_remove_csp_headers
true
_route
"product_single"
_route_params
[
  "rayon" => "legc"
  "code" => "choux-de-bruxelles_11656"
]
_security_firewall_run
"_security_main"
_stopwatch_token
"b19de0"
code
"choux-de-bruxelles_11656"
rayon
"legc"
zone
"frontend"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, deflate, br"
content-length
""
content-type
""
from
"bingbot(at)microsoft.com"
host
"primantilles.com"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36"
x-php-ob-level
"1"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Wed, 27 Nov 2024 13:02:38 GMT"
link
"<https://primantilles.com/api/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation""
x-debug-exception
"Impossible%20to%20access%20an%20attribute%20%28%22lv1_parent_id%22%29%20on%20a%20null%20variable."
x-debug-exception-file
"%2Fvar%2Fwww%2Fhtml%2Fprimantilles%2Fpublic%2Ftheme%2Fprimantilles%2Fproduct.twig:10"
x-debug-token
"591531"
x-debug-token-link
"https://primantilles.com/_profiler/ba3b37"
x-powered-by
[
  "Bolt"
  "Bolt"
]
x-previous-debug-token
"ba3b37"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session 7

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

7 Usages
Stateless check enabled
Usage
Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage:44
[
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 44
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/security-http/Firewall/AccessListener.php"
    "line" => 87
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/security-bundle/Debug/WrappedLazyListener.php"
    "line" => 49
    "function" => "authenticate"
    "class" => "Symfony\Component\Security\Http\Firewall\AccessListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/security-http/Firewall/AbstractListener.php"
    "line" => 26
    "function" => "authenticate"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php"
    "line" => 73
    "function" => "__invoke"
    "class" => "Symfony\Component\Security\Http\Firewall\AbstractListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/security-http/Firewall.php"
    "line" => 92
    "function" => "callListeners"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 117
    "function" => "onKernelRequest"
    "class" => "Symfony\Component\Security\Http\Firewall"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 230
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 59
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 154
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 128
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 74
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/vendor/symfony/http-kernel/Kernel.php"
    "line" => 202
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/primantilles/public/index.php"
    "line" => 44
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
]

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"a66a8340cb48caf34c031d6e3bf69f39"
CACHE_KEY
"62"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_PRODUCTS
"gourmetshop24"
DATABASE_PRODUCTS_PWD
"7WqDzB4c0F8sL0unZRPM"
DATABASE_PRODUCTS_USER
"gourmetshop"
DATABASE_URL
"mysql://primantillescom:uszJjR3YEa2dGACW@localhost:3306/primantilles_bolt5?serverVersion=14.14"
MAILER_DSN
"smtp://localhost"
RECAPTCHA_SECRET
"6LcVGlQbAAAAANSBGuYjdGC8vx31vHmdwSTrNtAd"
SIB_API_KEY
"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"

Defined as regular env variables

Key Value
CONTENT_LENGTH
""
CONTENT_TYPE
""
DOCUMENT_ROOT
"/var/www/html/primantilles/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br"
HTTP_FROM
"bingbot(at)microsoft.com"
HTTP_HOST
"primantilles.com"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_STATUS
"200"
REMOTE_ADDR
"40.77.167.33"
REMOTE_PORT
"43926"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1732712558
REQUEST_TIME_FLOAT
1732712558.3564
REQUEST_URI
"/product/legc/choux-de-bruxelles_11656"
SCRIPT_FILENAME
"/var/www/html/primantilles/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"134.209.192.133"
SERVER_NAME
"www.primantilles.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.14.0"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_DEBUG,APP_SECRET,DATABASE_URL,DATABASE_PRODUCTS,DATABASE_PRODUCTS_USER,DATABASE_PRODUCTS_PWD,MAILER_DSN,CORS_ALLOW_ORIGIN,SIB_API_KEY,RECAPTCHA_SECRET,CACHE_KEY"
USER
"www-data"

Sub Requests 1

ErrorController :: showAction (token = ba3b37)

Key Value
_controller
"Bolt\Controller\ErrorController::showAction"
_links
Fig\Link\GenericLinkProvider {#3236
  -links: [
    "0000000048bb32f700000000119a2639" => Fig\Link\Link {#3235
      -href: "https://primantilles.com/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => true
      ]
      -attributes: []
    }
  ]
}
_stopwatch_token
"5d8bb0"
exception
Twig\Error\RuntimeError {#2660
  -lineno: 10
  -name: "product.twig"
  -rawMessage: "Impossible to access an attribute ("lv1_parent_id") on a null variable."
  -sourcePath: "/var/www/html/primantilles/public/theme/primantilles/product.twig"
  -sourceCode: """
    {% extends 'partials/_master.twig' %}\n
    \n
    {% block main %}\n
    <div class="section nav-margin product-single">\n
        <div class="light-wrapper">\n
            <div class="container inner">\n
                <div class="row">\n
                    <div class="col-12 mb-4">\n
                        <h3 class="widget-title">\n
                            {% if rayon.lv1_parent_id > 1 and rayon.lv2_id > 1 %}\n
                            <a href="/rayon-liste/{{rayon.lv2_code}}">{{rayon.lv2_name}}</a> /\n
                            {% endif %}\n
                            {% if rayon.parent_id > 1 %}\n
                            <a href="/rayon-liste/{{rayon.lv1_code}}">{{rayon.lv1_name}}</a> /\n
                            {% endif %}\n
                            <a href="/rayon-liste/{{rayon.code}}">{{rayon.name}}</a> /\n
                            {{ product.name }}\n
                        </h3>\n
                    </div>\n
                </div>\n
                <div class="row">\n
                    <div class="col-md-6">\n
                        <div class="product-main-img bg-white">\n
                            <img class="img-responsive" src="{{ baseUrl ~ product.path }}" alt="{{ product.slug }}" />\n
                        </div>\n
                    </div>\n
                    <div class="col-md-6">\n
                        <div class="product-text">\n
                            <h2 class="product-description">{{ product.name }}</h2>\n
                            <p class="text-right text-muted small">{{ product.code }}</p>\n
                            <p class="product-description">\n
                                {{ product.short_description }}\n
                                <br/>\n
                                <br/>\n
                                {{ product.description }}\n
    \n
                            </p>\n
                            {% set attributes = getAttributes(product.id) %}\n
                            {% for attribute in attributes %}\n
                            <p class="mb-0">{{attribute.name|capitalize}}:&nbsp; {{attribute.text_value}}</p>\n
                            {% endfor %}\n
                            {# <div class="product-price">\n
                                <span>{{ product.price*0.01 }} €</span>\n
                            </div> #}\n
                        </div>\n
                    </div>\n
                </div>\n
            </div>\n
        </div>\n
    </div>\n
    {% endblock main %}
    """
  #message: "Impossible to access an attribute ("lv1_parent_id") on a null variable."
  #code: 0
  #file: "/var/www/html/primantilles/public/theme/primantilles/product.twig"
  #line: 10
  trace: {
    /var/www/html/primantilles/public/theme/primantilles/product.twig:10 {
      twig_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = [], $type = 'any', $isDefinedTest = false, $ignoreStrictCheck = false, $sandboxed = false, int $lineno = -1) …
      › <h3 class="widget-title">    {% if rayon.lv1_parent_id > 1 and rayon.lv2_id > 1 %}    <a href="/rayon-liste/{{rayon.lv2_code}}">{{rayon.lv2_name}}</a> /
    }
    /var/www/html/primantilles/public/theme/primantilles/product.twig:10 {
      __TwigTemplate_12b9f127125683bd39ad0d3d5291ac3bd5d8fd6ce85e1fdffdaeb27bbeef49e6->block_main($context, array $blocks = []) …
      › <h3 class="widget-title">    {% if rayon.lv1_parent_id > 1 and rayon.lv2_id > 1 %}    <a href="/rayon-liste/{{rayon.lv2_code}}">{{rayon.lv2_name}}</a> /
      arguments: {
        $env: Twig\Environment {#231 …}
        $source: Twig\Source {#1834 …}
        $object: null
        $item: "lv1_parent_id"
        $arguments: []
        $type: "any"
        $isDefinedTest: false
        $ignoreStrictCheck: false
        $sandboxed: false
        $lineno: 10
      }
    }
    /var/www/html/primantilles/vendor/twig/twig/src/Template.php:171 {
      Twig\Template->displayBlock($name, array $context, array $blocks = [], $useBlocks = true, self $templateContext = null) …
      › try {    $template->$block($context, $blocks);} catch (Error $e) {
      arguments: {
        $context: [ …9]
        $blocks: [ …2]
      }
    }
    /var/www/html/primantilles/public/theme/primantilles/partials/_master.twig:57 {
      __TwigTemplate_701dca8327493be211431026f91fc0ef7b5b765154c47f9d3b7a4c3e80868324->doDisplay(array $context, array $blocks = []) …
      › 
      › {% block main %}{% endblock main %}arguments: {
        $name: "main"
        $context: [ …9]
        $blocks: [ …2]
      }
    }
    /var/www/html/primantilles/vendor/twig/twig/src/Template.php:394 {
      Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
      › try {    $this->doDisplay($context, $blocks);} catch (Error $e) {
      arguments: {
        $context: [ …9]
        $blocks: [ …1]
      }
    }
    /var/www/html/primantilles/vendor/twig/twig/src/Template.php:367 {
      Twig\Template->display(array $context, array $blocks = []) …
      › {    $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));}
      arguments: {
        $context: [ …9]
        $blocks: [ …1]
      }
    }
    /var/www/html/primantilles/var/cache/dev/twig/a3/a3985162af6e5dad3185c69593e8c1e30fa6cffccf63a66878140a9056acd58f.php:48 {
      __TwigTemplate_12b9f127125683bd39ad0d3d5291ac3bd5d8fd6ce85e1fdffdaeb27bbeef49e6->doDisplay(array $context, array $blocks = []) …
      › $this->parent = $this->loadTemplate("partials/_master.twig", "product.twig", 1);$this->parent->display($context, array_merge($this->blocks, $blocks));arguments: {
        $context: [ …9]
        $blocks: [ …1]
      }
    }
    /var/www/html/primantilles/vendor/twig/twig/src/Template.php:394 {
      Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
      › try {    $this->doDisplay($context, $blocks);} catch (Error $e) {
      arguments: {
        $context: [ …9]
        $blocks: [ …1]
      }
    }
    /var/www/html/primantilles/vendor/twig/twig/src/Template.php:367 {
      Twig\Template->display(array $context, array $blocks = []) …
      › {    $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));}
      arguments: {
        $context: [ …9]
        $blocks: [ …1]
      }
    }
    /var/www/html/primantilles/vendor/twig/twig/src/Template.php:379 {
      Twig\Template->render(array $context) …
      › try {    $this->display($context);} catch (\Throwable $e) {
      arguments: {
        $context: [ …4]
      }
    }
    /var/www/html/primantilles/vendor/twig/twig/src/TemplateWrapper.php:40 {
      Twig\TemplateWrapper->render(array $context = []): string …
      ›     // as it should only be used by internal code    return $this->template->render($context, \func_get_args()[1] ?? []);}
      arguments: {
        $context: [ …4]
        ...: {
          []
        }
      }
    }
    /var/www/html/primantilles/vendor/twig/twig/src/Environment.php:277 {
      Twig\Environment->render($name, array $context = []): string …
      › {    return $this->load($name)->render($context);}
      arguments: {
        $context: [ …4]
      }
    }
    /var/www/html/primantilles/vendor/bolt/core/src/Controller/TwigAwareController.php:112 {
      Bolt\Controller\TwigAwareController->render($template, array $parameters = [], Response $response = null): Response …
      › // Render the template$content = $this->twig->render($template, $parameters);arguments: {
        $name: "product.twig"
        $context: [ …4]
      }
    }
    /var/www/html/primantilles/src/Controller/ProductController.php:210 {
      App\Controller\ProductController->productAction($rayon, $code, Request $request) …
      ›     "product" => $product,    "rayon" => $r,]);
      arguments: {
        $template: "product.twig"
        $parameters: [ …4]
      }
    }
    /var/www/html/primantilles/vendor/symfony/http-kernel/HttpKernel.php:152 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);arguments: {
        $rayon: "legc"
        $code: "choux-de-bruxelles_11656"
        $request: Symfony\Component\HttpFoundation\Request {#6 …}
      }
    }
    /var/www/html/primantilles/vendor/symfony/http-kernel/HttpKernel.php:74 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
      › try {    return $this->handleRaw($request, $type);} catch (\Exception $e) {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#6 …}
        $type: 1
      }
    }
    /var/www/html/primantilles/vendor/symfony/http-kernel/Kernel.php:202 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#6 …}
        $type: 1
        $catch: true
      }
    }
    /var/www/html/primantilles/public/index.php:44 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#6 …}
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#215 …8}
zone
"nowhere"