Error 500 Internal Server Error

GET https://staging.upcrewards.com/locale/sp

Forwarded to ErrorController (15c1ca)

DefaultController :: changeLocale

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\DefaultController::changeLocale"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"change_locale"
_route_params
[
  "locale" => "sp"
]
_security_firewall_run
"_security_main"
_stopwatch_token
"7cb589"
locale
"sp"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
from
"gptbot(at)openai.com"
host
"staging.upcrewards.com"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
x-openai-host-hash
"705843475"
x-php-ob-level
"0"

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, 03 Aug 2025 05:08:48 GMT"
vary
"Accept"
x-debug-exception
"Symfony%5CBundle%5CFrameworkBundle%5CController%5CAbstractController%3A%3Aredirect%28%29%3A%20Argument%20%231%20%28%24url%29%20must%20be%20of%20type%20string%2C%20null%20given%2C%20called%20in%20%2Fhome%2Fupc%2Fstaging%2Fsrc%2FController%2FDefaultController.php%20on%20line%2069"
x-debug-exception-file
"%2Fhome%2Fupc%2Fstaging%2Fvendor%2Fsymfony%2Fframework-bundle%2FController%2FAbstractController.php:131"
x-debug-token
"01e93e"
x-debug-token-link
"https://staging.upcrewards.com/_profiler/15c1ca"
x-previous-debug-token
"15c1ca"
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/upc/staging/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 41
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/scheb/2fa-bundle/Security/Http/Firewall/TwoFactorAccessListener.php"
    "line" => 42
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/security-bundle/Debug/WrappedLazyListener.php"
    "line" => 46
    "function" => "authenticate"
    "class" => "Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/security-bundle/Security/LazyFirewallContext.php"
    "line" => 60
    "function" => "authenticate"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php"
    "line" => 73
    "function" => "__invoke"
    "class" => "Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/security-http/Firewall.php"
    "line" => 95
    "function" => "callListeners"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 116
    "function" => "onKernelRequest"
    "class" => "Symfony\Component\Security\Http\Firewall"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 220
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 139
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 142
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 74
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/home/upc/staging/public/index.php"
    "line" => 5
    "args" => [
      "/home/upc/staging/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
"8e6ee599570cc6db4b94b006314265c8"
DASH_API_URL
"https://prepaid-portal-api-uat.azurewebsites.net/_ah/api"
DASH_CUST_ID
"11914"
DASH_CUST_PROG_ID
"19916"
DASH_FUNDING_ID
"10570"
DASH_LOGIN
"Level6UAT"
DASH_PASSWORD
"T3st1011!"
DATABASE_URL
"mysql://upc_staging:xW[uuMOrJn@127.0.0.1:3306/upc_staging?serverVersion=10.3.29-MariaDB"
DEFAULT_URI
"https://staging.upcrewards.com/"
LOCK_DSN
"flock"
MAILER_DEFAULT_FROM
"support@upcrewards.com"
MAILER_DEFAULT_NAME
"UPC Rewards"
MAILER_DSN
"smtp://8b83171d24c866:2b4e9fb3e72e6c@sandbox.smtp.mailtrap.io:2525?encryption=tls&auth_mode=login"
NZO_ENCRYPTOR_IV
"SLKFJHLKSJFIOLJ()342059;lzfm"
NZO_ENCRYPTOR_SECRET
"SJNFDKJSHRFUIHUI&8327u!@lmjd"
SYMFONY_DEPRECATIONS_HELPER
"weak"
SYMFONY_PATCH_TYPE_DECLARATIONS
"force=1"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTEXT_DOCUMENT_ROOT
"/home/upc/staging/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/home/upc/staging/public"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"staging.upcrewards.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
"705843475"
PATH
"/bin:/usr/bin"
PHP_INI_SCAN_DIR
"/opt/cpanel/ea-php81/root/etc:/opt/cpanel/ea-php81/root/etc/php.d:."
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"staging.upcrewards.com"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"aI7u4MAkkbXNnZxNzzlirgAAAQs"
REDIRECT_URL
"/locale/sp"
REMOTE_ADDR
"20.171.207.137"
REMOTE_PORT
"56140"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1754197728
REQUEST_TIME_FLOAT
1754197728.2569
REQUEST_URI
"/locale/sp"
SCRIPT_FILENAME
"/home/upc/staging/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"67.227.199.77"
SERVER_ADMIN
"webmaster@staging.upcrewards.com"
SERVER_NAME
"staging.upcrewards.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"staging.upcrewards.com"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MAILER_DSN,MAILER_DEFAULT_FROM,MAILER_DEFAULT_NAME,NZO_ENCRYPTOR_SECRET,NZO_ENCRYPTOR_IV,SYMFONY_DEPRECATIONS_HELPER,SYMFONY_PATCH_TYPE_DECLARATIONS,DEFAULT_URI,DASH_API_URL,DASH_LOGIN,DASH_PASSWORD,DASH_CUST_PROG_ID,DASH_CUST_ID,DASH_FUNDING_ID,LOCK_DSN"
TZ
"America/New_York"
UNIQUE_ID
"aI7u4MAkkbXNnZxNzzlirgAAAQs"
argc
0
argv
[]

Sub Requests 1

ErrorController (token = 15c1ca)

Key Value
_controller
"error_controller"
_stopwatch_token
"accf20"
exception
TypeError {#785
  #message: "Symfony\Bundle\FrameworkBundle\Controller\AbstractController::redirect(): Argument #1 ($url) must be of type string, null given, called in /home/upc/staging/src/Controller/DefaultController.php on line 69"
  #code: 0
  #file: "/home/upc/staging/vendor/symfony/framework-bundle/Controller/AbstractController.php"
  #line: 131
  trace: {
    /home/upc/staging/vendor/symfony/framework-bundle/Controller/AbstractController.php:131 {
      Symfony\Bundle\FrameworkBundle\Controller\AbstractController->redirect(string $url, int $status = 302): RedirectResponse …
      ›  */protected function redirect(string $url, int $status = 302): RedirectResponse{
    }
    /home/upc/staging/src/Controller/DefaultController.php:69 {
      App\Controller\DefaultController->changeLocale($locale, Request $request, SessionInterface $session) …
      ›     $response->sendHeaders();    return $this->redirect($request->headers->get('referer'));}
      arguments: {
        $url: null
      }
    }
    /home/upc/staging/vendor/symfony/http-kernel/HttpKernel.php:166 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);arguments: {
        $locale: "sp"
        $request: Symfony\Component\HttpFoundation\Request {#18 …}
        $session: Symfony\Component\HttpFoundation\Session\Session {#414 …}
      }
    }
    /home/upc/staging/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) {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#18 …}
        $type: 1
      }
    }
    /home/upc/staging/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 {#18 …}
        $type: 1
        $catch: true
      }
    }
    /home/upc/staging/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 {#18 …}
      }
    }
    /home/upc/staging/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /home/upc/staging/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/home/upc/staging/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#180 …9}