Error 500 Internal Server Error

GET http://betforfun.be/competition/4/statistics

Forwarded to ErrorController (68274c)

UserStatisticsController :: get

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\UserStatisticsController::get"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"app_competition_statistics_show"
_route_params
[
  "id" => "4"
]
_security_authenticators
[]
_security_firewall_run
"_security_main"
_security_skipped_authenticators
[
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#744
    -supports: false
    -passport: null
    -duration: null
    -stub: "Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator {#792 …}
  }
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#742
    -supports: false
    -passport: null
    -duration: null
    -stub: "Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator {#741 …}
  }
]
_stopwatch_token
"d69a9d"
id
"4"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, zstd, deflate"
authorization
""
cache-control
"max-age=259200"
connection
"keep-alive"
host
"betforfun.be"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
via
"1.1 squid-proxy-5b5d847c96-j2hqf (squid/6.13)"
x-forwarded-for
"10.3.58.177, 216.73.216.114"
x-forwarded-proto
"http"
x-forwarded-scheme
"http"
x-php-ob-level
"0"
x-real-ip
"216.73.216.114"

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
"Sat, 11 Apr 2026 05:57:40 GMT"
set-cookie
[
  "main_deauth_profile_token=68274c; path=/; httponly; samesite=lax"
  "main_auth_profile_token=deleted; expires=Fri, 11 Apr 2025 05:57:39 GMT; Max-Age=0; path=/; httponly"
]
vary
"Accept"
x-debug-exception
"Call%20to%20a%20member%20function%20getRound%28%29%20on%20null"
x-debug-exception-file
"%2Fvar%2Fwww%2Fsrc%2FController%2FUserStatisticsController.php:79"
x-debug-token
"2f86f0"
x-debug-token-link
"http://betforfun.be/_profiler/68274c"
x-previous-debug-token
"68274c"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

Key Value
main_auth_profile_token
Symfony\Component\HttpFoundation\Cookie {#2138
  #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 {#2136
  #expire: 0
  #path: "/"
  -sameSite: "lax"
  -secureDefault: false
  #name: "main_deauth_profile_token"
  #value: "68274c"
  #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
ADMIN_EMAIL
"frederic@upiconsult.be"
APP_ENV
"dev"
APP_SECRET
"d26fc6819caae070d0c6589257f3a387"
APP_TEST
"false"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_URL
"mysql://root:root@database:3306/db_docker_bff25?sslmode=disable&charset=utf8mb4&serverVersion=mariadb-10.4.31"
DEFAULT_URI
"http://localhost"
JWT_PASSPHRASE
"f6515eec23750a4b16edade4a3d4a2fc7a4fa9789a77e599db10a4f4c3170640"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
LOCK_DSN
"flock"
MAILER_DSN
"smtp://maildev:25"
MERCURE_JWT_SECRET
"!ChangeThisMercureHubJWTSecretKey!"
MERCURE_PUBLIC_URL
"https://example.com/.well-known/mercure"
MERCURE_URL
"https://example.com/.well-known/mercure"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"

Defined as regular env variables

Key Value
APACHE_CONFDIR
"/etc/apache2"
APACHE_ENVVARS
"/etc/apache2/envvars"
APACHE_LOCK_DIR
"/var/lock/apache2"
APACHE_LOG_DIR
"/var/log/apache2"
APACHE_PID_FILE
"/var/run/apache2/apache2.pid"
APACHE_RUN_DIR
"/var/run/apache2"
APACHE_RUN_GROUP
"www-data"
APACHE_RUN_USER
"www-data"
APP_DEBUG
"1"
APP_PROJECT_DIR
"/var/www"
APP_RUNTIME
"Symfony\Component\Runtime\SymfonyRuntime"
APP_RUNTIME_OPTIONS
[
  "project_dir" => "/var/www"
]
CONTEXT_DOCUMENT_ROOT
"/var/www/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/public"
GATEWAY_INTERFACE
"CGI/1.1"
GPG_KEYS
"39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC"
HOSTNAME
"98cda95c05eb"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_AUTHORIZATION
""
HTTP_CACHE_CONTROL
"max-age=259200"
HTTP_CONNECTION
"keep-alive"
HTTP_HOST
"betforfun.be"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_VIA
"1.1 squid-proxy-5b5d847c96-j2hqf (squid/6.13)"
HTTP_X_FORWARDED_FOR
"10.3.58.177, 216.73.216.114"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_FORWARDED_SCHEME
"http"
HTTP_X_REAL_IP
"216.73.216.114"
LANG
"C"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHPIZE_DEPS
"autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c"
PHP_ASC_URL
"https://www.php.net/distributions/php-8.2.30.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
"bc90523e17af4db46157e75d0c9ef0b9d0030b0514e62c26ba7b513b8c4eb015"
PHP_URL
"https://www.php.net/distributions/php-8.2.30.tar.xz"
PHP_VERSION
"8.2.30"
PWD
"/var/www"
QUERY_STRING
""
REMOTE_ADDR
"172.18.0.2"
REMOTE_PORT
"37820"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1775887060
REQUEST_TIME_FLOAT
1775887060.2668
REQUEST_URI
"/competition/4/statistics"
SCRIPT_FILENAME
"/var/www/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"172.18.0.5"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"betforfun.be"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.66 (Debian) Server at betforfun.be Port 80</address>\n"
SERVER_SOFTWARE
"Apache/2.4.66 (Debian)"
SHLVL
"0"
SYMFONY_DOTENV_PATH
"/var/www/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,APP_TEST,DATABASE_URL,MAILER_DSN,ADMIN_EMAIL,CORS_ALLOW_ORIGIN,JWT_SECRET_KEY,JWT_PUBLIC_KEY,JWT_PASSPHRASE,MERCURE_URL,MERCURE_PUBLIC_URL,MERCURE_JWT_SECRET,MESSENGER_TRANSPORT_DSN,LOCK_DSN,DEFAULT_URI"
argc
0
argv
[]

Sub Requests 1

ErrorController (token = 68274c)

Key Value
_controller
"error_controller"
_stopwatch_token
"a99051"
exception
Error {#1630
  #message: "Call to a member function getRound() on null"
  #code: 0
  #file: "/var/www/src/Controller/UserStatisticsController.php"
  #line: 79
  trace: {
    /var/www/src/Controller/UserStatisticsController.php:79 {
      App\Controller\UserStatisticsController->get(Request $request, EntityManagerInterface $em, Competition $competition): Response …
      › }$statistics['records'] = ['points' => ['best' => ['round' => $best_point_round->getRound()->getName(), 'points' => $best_point_round->getPoints(),], 'worst' => ['round' => $worst_point_round->getRound()->getName(), 'points' => $worst_point_round->getPoints(),],], 'ranking' => ['best' => ['round' => $best_ranking_round->getRound()->getName(), 'ranking' => $best_ranking_round->getRanking(),], 'worst' => ['round' => $worst_ranking_round->getRound()->getName(), 'ranking' => $worst_ranking_round->getRanking(),],]];$statistics['chart'] = ['options' => ['chart' => ['id' => 'basic-bar'], 'xaxis' => ['categories' => $chart_x_axis], 'stroke' => ['curve' => 'smooth',], 'yaxis' => ['reversed' => true]], 'series' => [['name' => 'Ranking', 'data' => $chart_ranking_series],]];
    }
    /var/www/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: {
        $request: Symfony\Component\HttpFoundation\Request {#2 …}
        $em: ContainerQqul7G5\EntityManagerGhost614a58f {#340 …}
        $competition: App\Entity\Competition {#1088 …}
      }
    }
    /var/www/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 {#2 …}
        $type: 1
      }
    }
    /var/www/vendor/symfony/http-kernel/Kernel.php:193 {
      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 {#2 …}
        $type: 1
        $catch: true
      }
    }
    /var/www/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 {#2 …}
      }
    }
    /var/www/vendor/autoload_runtime.php:32 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/var/www/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Processor\DebugProcessor {#220
  -records: [
    2 => [
      [
        "timestamp" => 1775887060
        "timestamp_rfc3339" => "2026-04-11T05:57:40.303+00:00"
        "message" => "Uncaught PHP Exception Error: "Call to a member function getRound() on null" at UserStatisticsController.php line 79"
        "priority" => 500
        "priorityName" => "CRITICAL"
        "context" => [
          "exception" => Error {#1630
            #message: "Call to a member function getRound() on null"
            #code: 0
            #file: "/var/www/src/Controller/UserStatisticsController.php"
            #line: 79
            trace: {
              /var/www/src/Controller/UserStatisticsController.php:79 {
                App\Controller\UserStatisticsController->get(Request $request, EntityManagerInterface $em, Competition $competition): Response …
                › }$statistics['records'] = ['points' => ['best' => ['round' => $best_point_round->getRound()->getName(), 'points' => $best_point_round->getPoints(),], 'worst' => ['round' => $worst_point_round->getRound()->getName(), 'points' => $worst_point_round->getPoints(),],], 'ranking' => ['best' => ['round' => $best_ranking_round->getRound()->getName(), 'ranking' => $best_ranking_round->getRanking(),], 'worst' => ['round' => $worst_ranking_round->getRound()->getName(), 'ranking' => $worst_ranking_round->getRanking(),],]];$statistics['chart'] = ['options' => ['chart' => ['id' => 'basic-bar'], 'xaxis' => ['categories' => $chart_x_axis], 'stroke' => ['curve' => 'smooth',], 'yaxis' => ['reversed' => true]], 'series' => [['name' => 'Ranking', 'data' => $chart_ranking_series],]];
              }
              /var/www/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: {
                  $request: Symfony\Component\HttpFoundation\Request {#2 …}
                  $em: ContainerQqul7G5\EntityManagerGhost614a58f {#340 …}
                  $competition: App\Entity\Competition {#1088 …}
                }
              }
              /var/www/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 {#2 …}
                  $type: 1
                }
              }
              /var/www/vendor/symfony/http-kernel/Kernel.php:193 {
                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 {#2 …}
                  $type: 1
                  $catch: true
                }
              }
              /var/www/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 {#2 …}
                }
              }
              /var/www/vendor/autoload_runtime.php:32 {
                require_once …
                ›         ->getRunner($app)        ->run());
              }
              /var/www/public/index.php:5 {
                › 
                › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
                  "/var/www/vendor/autoload_runtime.php"
                }
              }
            }
          }
        ]
        "channel" => "request"
      ]
    ]
  ]
  -errorCount: [
    2 => 1
  ]
  -requestStack: Symfony\Component\HttpKernel\Debug\VirtualRequestStack {#219 …}
}