Error 500 Internal Server Error

GET http://photos.vaniche.be:10012/brewery/5&amp&amp

Forwarded to ErrorController (045996)

BreweryController :: index

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\BreweryController::index"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"brewery"
_route_params
[
  "id" => "5&amp&amp"
]
_security_authenticators
[]
_security_firewall_run
"_security_main"
_security_skipped_authenticators
[]
_stopwatch_token
"a4c55a"
id
"5&amp&amp"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
from
"gptbot(at)openai.com"
host
"photos.vaniche.be:10012"
referer
"http://strapi.vaniche.be:10012"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.4; +https://openai.com/gptbot)"
x-openai-host-hash
"377909228"
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
"Sun, 05 Jul 2026 14:58:06 GMT"
set-cookie
[
  "main_deauth_profile_token=045996; path=/; httponly; samesite=lax"
  "main_auth_profile_token=deleted; expires=Sat, 05 Jul 2025 14:58:05 GMT; Max-Age=0; path=/; httponly"
]
x-debug-exception
"App%5CService%5CBrewery%3A%3AgetBrewery%28%29%3A%20Argument%20%231%20%28%24id%29%20must%20be%20of%20type%20int%2C%20string%20given%2C%20called%20in%20%2Fapplication%2Fsrc%2FController%2FBreweryController.php%20on%20line%2015"
x-debug-exception-file
"%2Fapplication%2Fsrc%2FService%2FBrewery.php:42"
x-debug-token
"3c8b0b"
x-debug-token-link
"http://photos.vaniche.be:10012/_profiler/045996"
x-previous-debug-token
"045996"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

Key Value
main_auth_profile_token
Symfony\Component\HttpFoundation\Cookie {#950
  #expire: 1
  #path: "/"
  -sameSite: null
  -secureDefault: false
  #name: "main_auth_profile_token"
  #value: null
  #domain: null
  #secure: false
  #httpOnly: true
  -raw: false
  -partitioned: false
}
main_deauth_profile_token
Symfony\Component\HttpFoundation\Cookie {#158
  #expire: 0
  #path: "/"
  -sameSite: "lax"
  -secureDefault: false
  #name: "main_deauth_profile_token"
  #value: "045996"
  #domain: null
  #secure: null
  #httpOnly: true
  -raw: false
  -partitioned: false
}

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ENV
"dev"
APP_SECRET
"1a31878898b58bad9eecb2c4b2876b06"
DATABASE_URL
"mysql://root:password@db:3306/brassicollines?serverVersion=8.0.32&charset=utf8mb4"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
APP_PROJECT_DIR
"/application"
APP_RUNTIME
"Symfony\Component\Runtime\SymfonyRuntime"
APP_RUNTIME_OPTIONS
[
  "project_dir" => "/application"
]
CONTENT_LENGTH
""
CONTENT_TYPE
""
DOCUMENT_ROOT
"/application/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
GPG_KEYS
"1198C0117593497A5EC5C199286AF1F9897469DC 49D9AF6BC72A80D6691719C8AA23F5BE9C7097D4 D95C03BC702BE9515344AE3374E44BC9067701A5"
HOME
"/home/local"
HOSTNAME
"79e52700405b"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"photos.vaniche.be:10012"
HTTP_REFERER
"http://strapi.vaniche.be:10012"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.4; +https://openai.com/gptbot)"
HTTP_X_OPENAI_HOST_HASH
"377909228"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHPIZE_DEPS
"autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c"
PHP_ASC_URL
"https://www.php.net/distributions/php-8.5.4.tar.xz.asc"
PHP_CFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_CPPFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_INI_DIR
"/usr/local/etc/php"
PHP_LDFLAGS
"-Wl,-O1 -pie"
PHP_SELF
"/index.php"
PHP_SHA256
"c1569f1f543f6b025c583cdc0e730e5c5833c603618613f1aa8e75d1524b8c91"
PHP_URL
"https://www.php.net/distributions/php-8.5.4.tar.xz"
PHP_VALUE
"error_log=/var/log/nginx/application_php_errors.log"
PHP_VERSION
"8.5.4"
PWD
"/application"
QUERY_STRING
""
REDIRECT_STATUS
"200"
REMOTE_ADDR
"74.7.241.49"
REMOTE_PORT
"42788"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1783263486
REQUEST_TIME_FLOAT
1783263486.6089
REQUEST_URI
"/brewery/5&amp&amp"
SCRIPT_FILENAME
"/application/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"172.30.0.4"
SERVER_NAME
""
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.19.0"
SHLVL
"2"
SYMFONY_DOTENV_PATH
"/application/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MESSENGER_TRANSPORT_DSN"
TRUSTED_PROXIES
"127.0.0.1,REMOTE_ADDR"
USER
"local"

Sub Requests 1

ErrorController (token = 045996)

Key Value
_controller
"error_controller"
_stopwatch_token
"0d92a8"
exception
TypeError {#727
  #message: "App\Service\Brewery::getBrewery(): Argument #1 ($id) must be of type int, string given, called in /application/src/Controller/BreweryController.php on line 15"
  #code: 0
  #file: "/application/src/Service/Brewery.php"
  #line: 42
  trace: {
    /application/src/Service/Brewery.php:42 {
      App\Service\Brewery->getBrewery(int $id): Brewer …
      › 
      › public function getBrewery(int $id): Brewer{
    }
    /application/src/Controller/BreweryController.php:15 {
      App\Controller\BreweryController->index($id, Brewery $brewery): Response …
      › {    $brewery = $brewery->getBrewery($id);    return $this->render('brewery/index.html.twig', [
      arguments: {
        $id: "5&amp&amp"
      }
    }
    /application/vendor/symfony/http-kernel/HttpKernel.php:183 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);arguments: {
        $id: "5&amp&amp"
        $brewery: App\Service\Brewery {#700 …}
      }
    }
    /application/vendor/symfony/http-kernel/HttpKernel.php:76 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#3 …}
        $type: 1
      }
    }
    /application/vendor/symfony/http-kernel/Kernel.php:191 {
      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 {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#3 …}
        $type: 1
        $catch: true
      }
    }
    /application/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#3 …}
      }
    }
    /application/vendor/autoload_runtime.php:32 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /application/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/application/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Processor\DebugProcessor {#61
  -records: [
    3 => [
      [
        "timestamp" => 1783263486
        "timestamp_rfc3339" => "2026-07-05T16:58:06.612+02:00"
        "message" => "Matched route "{route}"."
        "priority" => 200
        "priorityName" => "INFO"
        "context" => [
          "route" => "brewery"
          "route_parameters" => [
            "_route" => "brewery"
            "_controller" => "App\Controller\BreweryController::index"
            "id" => "5&amp&amp"
          ]
          "request_uri" => "http://photos.vaniche.be:10012/brewery/5&amp&amp"
          "method" => "GET"
        ]
        "channel" => "request"
      ]
      [
        "timestamp" => 1783263486
        "timestamp_rfc3339" => "2026-07-05T16:58:06.613+02:00"
        "message" => "Checking for authenticator support."
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "firewall_name" => "main"
          "authenticators" => 0
        ]
        "channel" => "security"
      ]
      [
        "timestamp" => 1783263486
        "timestamp_rfc3339" => "2026-07-05T16:58:06.614+02:00"
        "message" => "Uncaught PHP Exception TypeError: "App\Service\Brewery::getBrewery(): Argument #1 ($id) must be of type int, string given, called in /application/src/Controller/BreweryController.php on line 15" at Brewery.php line 42"
        "priority" => 500
        "priorityName" => "CRITICAL"
        "context" => [
          "exception" => TypeError {#727
            #message: "App\Service\Brewery::getBrewery(): Argument #1 ($id) must be of type int, string given, called in /application/src/Controller/BreweryController.php on line 15"
            #code: 0
            #file: "/application/src/Service/Brewery.php"
            #line: 42
            trace: {
              /application/src/Service/Brewery.php:42 {
                App\Service\Brewery->getBrewery(int $id): Brewer …
                › 
                › public function getBrewery(int $id): Brewer{
              }
              /application/src/Controller/BreweryController.php:15 {
                App\Controller\BreweryController->index($id, Brewery $brewery): Response …
                › {    $brewery = $brewery->getBrewery($id);    return $this->render('brewery/index.html.twig', [
                arguments: {
                  $id: "5&amp&amp"
                }
              }
              /application/vendor/symfony/http-kernel/HttpKernel.php:183 {
                Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
                › // call controller$response = $controller(...$arguments);arguments: {
                  $id: "5&amp&amp"
                  $brewery: App\Service\Brewery {#700 …}
                }
              }
              /application/vendor/symfony/http-kernel/HttpKernel.php:76 {
                Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
                › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
                arguments: {
                  $request: Symfony\Component\HttpFoundation\Request {#3 …}
                  $type: 1
                }
              }
              /application/vendor/symfony/http-kernel/Kernel.php:191 {
                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 {
                arguments: {
                  $request: Symfony\Component\HttpFoundation\Request {#3 …}
                  $type: 1
                  $catch: true
                }
              }
              /application/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
                Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
                › {    $response = $this->kernel->handle($this->request);arguments: {
                  $request: Symfony\Component\HttpFoundation\Request {#3 …}
                }
              }
              /application/vendor/autoload_runtime.php:32 {
                require_once …
                ›         ->getRunner($app)        ->run());
              }
              /application/public/index.php:5 {
                › 
                › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
                  "/application/vendor/autoload_runtime.php"
                }
              }
            }
          }
        ]
        "channel" => "request"
      ]
    ]
  ]
  -errorCount: [
    3 => 1
  ]
  -requestStack: Symfony\Component\HttpKernel\Debug\VirtualRequestStack {#60 …}
}