Error 500 Internal Server Error

GET http://linkweup.com/programs

Forwarded to ErrorController (a081a7)

ProgramsController :: index

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\ProgramsController::index"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"app_programs"
_route_params
[]
_security_firewall_run
"_security_main"
_stopwatch_token
"696788"

Request Headers

Header Value
accept
"*/*"
accept-charset
"utf-8;q=0.7,iso-8859-1;q=0.2,*;q=0.1"
host
"linkweup.com"
user-agent
"Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)"
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
"Fri, 23 May 2025 20:01:33 GMT"
x-debug-exception
"App%5CService%5CUserService%3A%3AisAdmin%28%29%3A%20Argument%20%231%20%28%24user%29%20must%20be%20of%20type%20Symfony%5CComponent%5CSecurity%5CCore%5CUser%5CUserInterface%2C%20null%20given%2C%20called%20in%20%2Fhome%2Facbphdkw%2Flinkweup%2Fsrc%2FController%2FProgramsController.php%20on%20line%2031"
x-debug-exception-file
"%2Fhome%2Facbphdkw%2Flinkweup%2Fsrc%2FService%2FUserService.php:18"
x-debug-token
"5ff43b"
x-debug-token-link
"http://linkweup.com/_profiler/a081a7"
x-previous-debug-token
"a081a7"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session 1

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

1 Usages
Stateless check enabled
Usage
Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage:41
[
  [
    "file" => "/home/acbphdkw/linkweup/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 41
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/home/acbphdkw/linkweup/vendor/symfony/framework-bundle/Controller/AbstractController.php"
    "line" => 367
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/home/acbphdkw/linkweup/src/Controller/ProgramsController.php"
    "line" => 31
    "function" => "getUser"
    "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController"
    "type" => "->"
  ]
  [
    "file" => "/home/acbphdkw/linkweup/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 163
    "function" => "index"
    "class" => "App\Controller\ProgramsController"
    "type" => "->"
  ]
  [
    "file" => "/home/acbphdkw/linkweup/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 74
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/home/acbphdkw/linkweup/vendor/symfony/http-kernel/Kernel.php"
    "line" => 184
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/home/acbphdkw/linkweup/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/home/acbphdkw/linkweup/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/home/acbphdkw/linkweup/public/index.php"
    "line" => 5
    "args" => [
      "/home/acbphdkw/linkweup/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ENV
"dev"
APP_SECRET
"7f2bc3816eb8a60c1f9b1ae1dc0280f9"
DATABASE_URL
"mysql://acbphdkw_bdd:qmTF2m2_iuH!11q_q3@localhost/acbphdkw_linkweup"
MAILER_DSN
"smtp://no_reply@commande-plus.com:Yaquoipourqui%211991no_reply@nodels20-eu.n0c.com:465"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"
S3BUCKET
"castingpro"
S3KEY
"AKIA2VSELJ5UKEI7RBFQ"
S3REGION
"eu-west-1"
S3SECRET
"rsZpvmH/AFwNG6juRaaAhGjJnDBFzf/U/1E02Bwx"
S3VERSION
"latest"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CRAWLER_LOAD_LIMIT
"5.2"
CRAWLER_USLEEP
"1000"
DOCUMENT_ROOT
"/home/acbphdkw/linkweup/public"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_CHARSET
"utf-8;q=0.7,iso-8859-1;q=0.2,*;q=0.1"
HTTP_HOST
"linkweup.com"
HTTP_USER_AGENT
"Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)"
PATH
"/usr/local/bin:/bin:/usr/bin"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_REQUEST_METHOD
"GET"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/programs"
REMOTE_ADDR
"216.244.66.241"
REMOTE_PORT
"49488"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1748030491
REQUEST_TIME_FLOAT
1748030491.8217
REQUEST_URI
"/programs"
SCRIPT_FILENAME
"/home/acbphdkw/linkweup/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"http://linkweup.com/programs"
SCRIPT_URL
"/programs"
SERVER_ADDR
"10.123.2.172"
SERVER_ADMIN
"acbphdkw@linkweup.com"
SERVER_NAME
"linkweup.com"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"LiteSpeed"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MESSENGER_TRANSPORT_DSN,MAILER_DSN,S3KEY,S3SECRET,S3BUCKET,S3REGION,S3VERSION"
X-LSCACHE
"on,crawler"

Sub Requests 1

ErrorController (token = a081a7)

Key Value
_controller
"error_controller"
_stopwatch_token
"6fc864"
exception
TypeError {#166
  #message: "App\Service\UserService::isAdmin(): Argument #1 ($user) must be of type Symfony\Component\Security\Core\User\UserInterface, null given, called in /home/acbphdkw/linkweup/src/Controller/ProgramsController.php on line 31"
  #code: 0
  #file: "/home/acbphdkw/linkweup/src/Service/UserService.php"
  #line: 18
  trace: {
    /home/acbphdkw/linkweup/src/Service/UserService.php:18 {
      App\Service\UserService->isAdmin(UserInterface $user): bool …
      › 
      › public function isAdmin(UserInterface $user): bool{
    }
    /home/acbphdkw/linkweup/src/Controller/ProgramsController.php:31 {
      App\Controller\ProgramsController->index(ProgramRepository $programRepo, UserService $userService): Response …
      › $user = $this->getUser();if (!$userService->isAdmin($this->getUser())){    $user = $user->getAdministrator();
    }
    /home/acbphdkw/linkweup/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);}
    /home/acbphdkw/linkweup/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) {
    }
    /home/acbphdkw/linkweup/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 {
    }
    /home/acbphdkw/linkweup/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);    $response->send();
    }
    /home/acbphdkw/linkweup/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /home/acbphdkw/linkweup/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/home/acbphdkw/linkweup/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#31 …9}