Error 500 Internal Server Error

GET https://playmagicsoldier.com/en/change_locale/es

Forwarded to ErrorController (05cf6d)

HomeController :: changeLocale

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\HomeController::changeLocale"
_firewall_context
"security.firewall.map.context.main"
_locale
"en"
_remove_csp_headers
true
_route
"change_locale"
_route_params
[
  "_locale" => "en"
  "locale" => "es"
]
_security_firewall_run
"_security_main"
_stopwatch_token
"959062"
locale
"es"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
cookie
"PHPSESSID=3gtcq1f68898l52rai1i81b9vu"
from
"gptbot(at)openai.com"
host
"playmagicsoldier.com"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
x-openai-host-hash
"422517889"
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
"Mon, 08 Sep 2025 23:09:05 GMT"
vary
"Accept"
x-debug-exception
"Cannot%20redirect%20to%20an%20empty%20URL."
x-debug-exception-file
"C%3A%5Claragon%5Cwww%5Cvendor%5Csymfony%5Chttp-foundation%5CRedirectResponse.php:68"
x-debug-token
"efb339"
x-debug-token-link
"https://playmagicsoldier.com/_profiler/05cf6d"
x-previous-debug-token
"05cf6d"
x-robots-tag
"noindex"

Cookies

Request Cookies

Key Value
PHPSESSID
"3gtcq1f68898l52rai1i81b9vu"

Response Cookies

No response cookies

Session 3

Session Metadata

Key Value
Created
"Mon, 08 Sep 25 23:05:48 +0000"
Last used
"Mon, 08 Sep 25 23:09:01 +0000"
Lifetime
0

Session Attributes

Attribute Value
_locale
"es"

Session Usage

3 Usages
Stateless check enabled
Usage
App\EventSubscriber\LocaleSubscriber:39
[
  [
    "file" => "C:\laragon\www\src\EventSubscriber\LocaleSubscriber.php"
    "line" => 39
    "function" => "get"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\event-dispatcher\Debug\WrappedListener.php"
    "line" => 116
    "function" => "onKernelRequest"
    "class" => "App\EventSubscriber\LocaleSubscriber"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\event-dispatcher\EventDispatcher.php"
    "line" => 220
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\event-dispatcher\EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\event-dispatcher\Debug\TraceableEventDispatcher.php"
    "line" => 139
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\HttpKernel.php"
    "line" => 158
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\runtime\Runner\Symfony\HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\public\index.php"
    "line" => 5
    "args" => [
      "C:\laragon\www\vendor\autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]
App\Controller\HomeController:195
[
  [
    "file" => "C:\laragon\www\src\Controller\HomeController.php"
    "line" => 195
    "function" => "set"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\HttpKernel.php"
    "line" => 182
    "function" => "changeLocale"
    "class" => "App\Controller\HomeController"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\runtime\Runner\Symfony\HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\public\index.php"
    "line" => 5
    "args" => [
      "C:\laragon\www\vendor\autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]
Symfony\Component\Security\Http\Firewall\ContextListener:171
[
  [
    "file" => "C:\laragon\www\vendor\symfony\security-http\Firewall\ContextListener.php"
    "line" => 171
    "function" => "remove"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\event-dispatcher\Debug\WrappedListener.php"
    "line" => 116
    "function" => "onKernelResponse"
    "class" => "Symfony\Component\Security\Http\Firewall\ContextListener"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\event-dispatcher\EventDispatcher.php"
    "line" => 220
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\event-dispatcher\EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\event-dispatcher\Debug\TraceableEventDispatcher.php"
    "line" => 139
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\HttpKernel.php"
    "line" => 215
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\HttpKernel.php"
    "line" => 266
    "function" => "filterResponse"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\HttpKernel.php"
    "line" => 91
    "function" => "handleThrowable"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\http-kernel\Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\symfony\runtime\Runner\Symfony\HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\vendor\autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "C:\laragon\www\public\index.php"
    "line" => 5
    "args" => [
      "C:\laragon\www\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_MAINTENANCE
"false"
APP_SECRET
"53a10f1bd77bc9b3a5d033573f31cc4c"
DATABASE_URL
"mysql://magicsoldier:Z92b83yv@127.0.0.1:3306/intersect?serverVersion=5.7"
DEDIPASS_PRIVATE_KEY
"29ff6a7f194670d3b1e7fa4a61b98267d4255116"
DEDIPASS_PUBLIC_KEY
"eb8c8ac29491d1026190a12b8d5671f4"
GAME_API_SECRET
"jFQ19zRp8nAaJ31sYWm47BtKsJzZ2A2B"
MAILER_DSN
"smtp://localhost"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
COMSPEC
"C:\Windows\system32\cmd.exe"
CONTEXT_DOCUMENT_ROOT
"C:/laragon/www/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"C:/laragon/www/public"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_COOKIE
"PHPSESSID=3gtcq1f68898l52rai1i81b9vu"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"playmagicsoldier.com"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
HTTP_X_OPENAI_HOST_HASH
"422517889"
PATH
"C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\laragon\bin\mysql\mysql-8.4.3-winx64\bin;C:\Program Files\dotnet\;C:\Users\Administrateur\AppData\Local\Programs\Python\Python313\Scripts\;C:\Users\Administrateur\AppData\Local\Programs\Python\Python313\;C:\Users\Administrateur\AppData\Local\Programs\Python\Launcher\;C:\Users\Administrateur\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrateur\AppData\Roaming\npm"
PATHEXT
".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"playmagicsoldier.com"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/en/change_locale/es"
REMOTE_ADDR
"20.171.207.245"
REMOTE_PORT
"41504"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1757372944
REQUEST_TIME_FLOAT
1757372944.876
REQUEST_URI
"/en/change_locale/es"
SCRIPT_FILENAME
"C:/laragon/www/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"185.41.152.178"
SERVER_ADMIN
"admin@example.com"
SERVER_NAME
"playmagicsoldier.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache/2.4.62 (Win64) OpenSSL/3.0.15 PHP/8.3.16"
SSL_TLS_SNI
"playmagicsoldier.com"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,MAILER_DSN,DATABASE_URL,DEDIPASS_PUBLIC_KEY,DEDIPASS_PRIVATE_KEY,APP_MAINTENANCE,GAME_API_SECRET"
SystemRoot
"C:\Windows"
WINDIR
"C:\Windows"

Sub Requests 1

ErrorController (token = 05cf6d)

Key Value
_controller
"error_controller"
_stopwatch_token
"045edf"
exception
InvalidArgumentException {#619
  #message: "Cannot redirect to an empty URL."
  #code: 0
  #file: "C:\laragon\www\vendor\symfony\http-foundation\RedirectResponse.php"
  #line: 68
  trace: {
    C:\laragon\www\vendor\symfony\http-foundation\RedirectResponse.php:68 {
      Symfony\Component\HttpFoundation\RedirectResponse->setTargetUrl(string $url): static …
      › if ('' === $url) {    throw new \InvalidArgumentException('Cannot redirect to an empty URL.');}
    }
    C:\laragon\www\vendor\symfony\http-foundation\RedirectResponse.php:39 {
      Symfony\Component\HttpFoundation\RedirectResponse->__construct(string $url, int $status = 302, array $headers = []) …
      › 
      › $this->setTargetUrl($url);arguments: {
        $url: ""
      }
    }
    C:\laragon\www\vendor\symfony\framework-bundle\Controller\AbstractController.php:133 {
      Symfony\Bundle\FrameworkBundle\Controller\AbstractController->redirect(string $url, int $status = 302): RedirectResponse …
      › {    return new RedirectResponse($url, $status);}
      arguments: {
        $url: ""
        $status: 302
      }
    }
    C:\laragon\www\src\Controller\HomeController.php:197 {
      App\Controller\HomeController->changeLocale($locale, Request $request, Settings $settings) …
      › \r    return $this->redirect($previous);\r}\r
      arguments: {
        $url: ""
      }
    }
    C:\laragon\www\vendor\symfony\http-kernel\HttpKernel.php:182 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);arguments: {
        $locale: "es"
        $request: Symfony\Component\HttpFoundation\Request {#3 …}
        $settings: App\Settings\Settings {#489 …}
      }
    }
    C:\laragon\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 {#3 …}
        $type: 1
      }
    }
    C:\laragon\www\vendor\symfony\http-kernel\Kernel.php:197 {
      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
      }
    }
    C:\laragon\www\vendor\symfony\runtime\Runner\Symfony\HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);    $response->send();
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#3 …}
      }
    }
    C:\laragon\www\vendor\autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    C:\laragon\www\public\index.php:5 {\rrequire_once dirname(__DIR__).'/vendor/autoload_runtime.php';\r\r
      arguments: {
        "C:\laragon\www\vendor\autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#63 …9}