Error 500 Internal Server Error

GET http://recette.fpcrea.com/book/detail?url=public%2Fbook%2Fdetail

Forwarded to ErrorController (bda753)

IndexController :: detailBook

Request

GET Parameters

Key Value
url
"public/book/detail"

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"App\Controller\IndexController::detailBook"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"detail_book"
_route_params
[]
_security_firewall_run
"_security_main"
_stopwatch_token
"dec2f9"

Request Headers

Header Value
accept
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
accept-encoding
"gzip, deflate"
accept-language
"en-US,en;q=0.5"
cache-control
"max-age=0"
connection
"close"
cookie
"PHPSESSID=2v1l01rmqdfnd3tgi00vg5rcdm"
host
"recette.fpcrea.com"
upgrade-insecure-requests
"1"
user-agent
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"
x-accel-internal
"/internal-nginx-static-location"
x-php-ob-level
"1"
x-real-ip
"82.25.175.72"

Request Content

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

Response

Response Headers

Header Value
cache-control
"private, must-revalidate"
content-type
"text/html; charset=UTF-8"
date
"Tue, 10 Feb 2026 07:03:49 GMT"
expires
"-1"
pragma
"no-cache"
x-debug-exception
"App%5CTwig%5CBookExtension%3A%3AimgBookPresentation%28%29%3A%20Argument%20%231%20%28%24book%29%20must%20be%20of%20type%20App%5CEntity%5CBook%2C%20null%20given%2C%20called%20in%20%2Fvar%2Fwww%2Fvhosts%2Ffpcrea.com%2Frecette.fpcrea.com%2Fvar%2Fcache%2Fdev%2Ftwig%2F15%2F1526cb9a3c99abf9853c2b8c94c99449.php%20on%20line%2049"
x-debug-exception-file
"%2Fvar%2Fwww%2Fvhosts%2Ffpcrea.com%2Frecette.fpcrea.com%2Fsrc%2FTwig%2FBookExtension.php:49"
x-debug-token
"31288d"
x-debug-token-link
"http://recette.fpcrea.com/_profiler/bda753"
x-previous-debug-token
"bda753"
x-robots-tag
"noindex"

Cookies

Request Cookies

Key Value
PHPSESSID
"2v1l01rmqdfnd3tgi00vg5rcdm"

Response Cookies

No response cookies

Session 1

Session Metadata

Key Value
Created
"Tue, 10 Feb 26 07:03:40 +0000"
Last used
"Tue, 10 Feb 26 07:03:47 +0000"
Lifetime
0

Session Attributes

Attribute Value
_csrf/contact
"irU5pzPUCw3Xq80Qe3dRBF6PRX6MVMzo7Mu5-HUWZeg"

Session Usage

1 Usages
Stateless check enabled
Usage
Symfony\Component\Security\Http\Firewall\ContextListener:171
[
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/security-http/Firewall/ContextListener.php"
    "line" => 171
    "function" => "remove"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 115
    "function" => "onKernelResponse"
    "class" => "Symfony\Component\Security\Http\Firewall\ContextListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 206
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 127
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 196
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 247
    "function" => "filterResponse"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 114
    "function" => "handleThrowable"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php"
    "line" => 125
    "function" => "terminateWithException"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/error-handler/ErrorHandler.php"
    "line" => 538
    "function" => "Symfony\Component\HttpKernel\EventListener\{closure}"
    "class" => "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener"
    "type" => "::"
  ]
  [
    "function" => "handleException"
    "class" => "Symfony\Component\ErrorHandler\ErrorHandler"
    "type" => "->"
  ]
]

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ENV
"dev"
APP_SECRET
"162a0e0e13aa22e10e5a2b9d189f7eb7"
DATABASE_URL
"mysql://recette:cdP0GnH3gQSrRZaeKPvN@localhost:3306/recette"
DEST_MAIL_CONTACT
"contact@fpcrea.com"
PUBLIC_MAILJET_API_KEY
"c0a3b1cd3bf47bc21514ae02d3ee37aa"
RECAPTCHA3_KEY
"6Ld5q3gkAAAAABZo_ldyi-J76mgDjMdY0UokvigC"
RECAPTCHA3_SECRET
"6Ld5q3gkAAAAACQomvgBsVi2rUi-YsU7mTfdqwB4"
SECRET_MAILJET_API_KEY
"ebc372e5d5a24e584cbf9213798e4830"
URL_FACEBOOK_SHARE
"https://www.facebook.com/sharer/sharer.php?u=https:www.fpcrea.com"
URL_MAILTO_SHARE
"mailto:?subject=FPCréa&body=https://www.fpcrea.com"
URL_TWITTER_SHARE
"https://twitter.com/share?url=https:www.fpcrea.com/&text=FPCréa"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/fpcrea.com/recette.fpcrea.com/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/vhosts/fpcrea.com/recette.fpcrea.com/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/vhosts/fpcrea.com"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_ENCODING
"gzip, deflate"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_CACHE_CONTROL
"max-age=0"
HTTP_CONNECTION
"close"
HTTP_COOKIE
"PHPSESSID=2v1l01rmqdfnd3tgi00vg5rcdm"
HTTP_HOST
"recette.fpcrea.com"
HTTP_UPGRADE_INSECURE_REQUESTS
"1"
HTTP_USER_AGENT
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_REAL_IP
"82.25.175.72"
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"url=public/book/detail"
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_QUERY_STRING
"url=public/book/detail"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/book/detail"
REMOTE_ADDR
"82.25.175.72"
REMOTE_PORT
"40738"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1770707027
REQUEST_TIME_FLOAT
1770707027.7447
REQUEST_URI
"/book/detail"
SCRIPT_FILENAME
"/var/www/vhosts/fpcrea.com/recette.fpcrea.com/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"213.246.62.234"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"recette.fpcrea.com"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.0"
SERVER_SIGNATURE
"<address>Apache Server at recette.fpcrea.com Port 80</address>\n"
SERVER_SOFTWARE
"Apache"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,URL_FACEBOOK_SHARE,URL_MAILTO_SHARE,URL_TWITTER_SHARE,PUBLIC_MAILJET_API_KEY,SECRET_MAILJET_API_KEY,DEST_MAIL_CONTACT,RECAPTCHA3_KEY,RECAPTCHA3_SECRET"
USER
"zfpcreac28325co"
proxy-nokeepalive
"1"

Sub Requests 1

ErrorController (token = bda753)

Key Value
_controller
"error_controller"
_stopwatch_token
"ef7bb7"
exception
TypeError {#499
  #message: "App\Twig\BookExtension::imgBookPresentation(): Argument #1 ($book) must be of type App\Entity\Book, null given, called in /var/www/vhosts/fpcrea.com/recette.fpcrea.com/var/cache/dev/twig/15/1526cb9a3c99abf9853c2b8c94c99449.php on line 49"
  #code: 0
  #file: "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/src/Twig/BookExtension.php"
  #line: 49
  trace: {
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/src/Twig/BookExtension.php:49 {
      App\Twig\BookExtension->imgBookPresentation(Book $book) …
      › }public function imgBookPresentation(Book $book){    /** @var PictureBook $picture */
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/templates/front/details/detailBook.html.twig:5 {
      __TwigTemplate_c1a57fb09070174c86f5dfb675af2cf6->doDisplay(array $context, array $blocks = []) …
      › <div class='img_desc_book'>    <a><img src="{{ book_path ~ '/' ~ book|imgBookPresentation }}"/></a></div>
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/twig/twig/src/Template.php:394 {
      Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
      › try {    $this->doDisplay($context, $blocks);} catch (Error $e) {
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/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));}
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/twig/twig/src/Template.php:379 {
      Twig\Template->render(array $context) …
      › try {    $this->display($context);} catch (\Throwable $e) {
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/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] ?? []);}
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/twig/twig/src/Environment.php:280 {
      Twig\Environment->render($name, array $context = []): string …
      › {    return $this->load($name)->render($context);}
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/framework-bundle/Controller/AbstractController.php:242 {
      Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView(string $view, array $parameters = []): string …
      › 
      ›     return $this->container->get('twig')->render($view, $parameters);}
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/framework-bundle/Controller/AbstractController.php:253 {
      Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render(string $view, array $parameters = [], Response $response = null): Response …
      › {    $content = $this->renderView($view, $parameters);    $response ??= new Response();
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/src/Controller/IndexController.php:101 {
      App\Controller\IndexController->detailBook(Request $request): Response …
      ›     $book = $this->em->getRepository(Book::class)->findOneBy(['id' => $id]);    return $this->render("front/details/detailBook.html.twig", array('book' => $book));}
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/http-kernel/HttpKernel.php:163 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/http-kernel/HttpKernel.php:74 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->handleRaw($request, $type);} catch (\Throwable $e) {
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/vendor/symfony/http-kernel/Kernel.php:184 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
    }
    /var/www/vhosts/fpcrea.com/recette.fpcrea.com/public/index.php:28 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#16 …8}