Error 500 Internal Server Error

GET http://club.agencenrv.fr/cron/message/send

ErrorController

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"error_controller"
_stopwatch_token
"1e1e5f"
exception
Error {#759
  #message: "Call to a member function hasRole() on null"
  #code: 0
  #file: "/var/www/html/src/Controller/CronController.php"
  #line: 50
  trace: {
    /var/www/html/src/Controller/CronController.php:50 {
      App\Controller\CronController->send_message(MessageRepository $messageRepository, EntityManagerInterface $entityManager, Security $security, Request $request, EmailService $emailService): Response …
      › $referrer = $request->headers->get('referer', '');if ($security->getUser()->hasRole('ROLE_SUPER_ADMIN') && !empty($referrer) ) {    return $this->redirect($referrer);
    }
    /var/www/html/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: {
        $messageRepository: App\Repository\MessageRepository {#400 …}
        $entityManager: ContainerZWwVrAQ\EntityManagerGhost614a58f {#308 …}
        $security: Symfony\Bundle\SecurityBundle\Security {#78 …}
        $request: Symfony\Component\HttpFoundation\Request {#2 …}
        $emailService: App\Service\EmailService {#606 …}
      }
    }
    /var/www/html/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/html/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/html/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/html/vendor/autoload_runtime.php:32 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/html/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
        "/var/www/html/vendor/autoload_runtime.php"
      }
    }
  }
}
logger
Symfony\Bridge\Monolog\Processor\DebugProcessor {#143
  -records: [
    2 => [
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.373+00:00"
        "message" => "Matched route "{route}"."
        "priority" => 200
        "priorityName" => "INFO"
        "context" => [
          "route" => "app_cron_message_send"
          "route_parameters" => [
            "_route" => "app_cron_message_send"
            "_controller" => "App\Controller\CronController::send_message"
          ]
          "request_uri" => "http://club.agencenrv.fr/cron/message/send"
          "method" => "GET"
        ]
        "channel" => "request"
      ]
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.375+00:00"
        "message" => "Checking for authenticator support."
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "firewall_name" => "main"
          "authenticators" => 2
        ]
        "channel" => "security"
      ]
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.375+00:00"
        "message" => "Checking support on authenticator."
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "firewall_name" => "main"
          "authenticator" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator"
        ]
        "channel" => "security"
      ]
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.375+00:00"
        "message" => "Authenticator does not support the request."
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "firewall_name" => "main"
          "authenticator" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator"
        ]
        "channel" => "security"
      ]
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.375+00:00"
        "message" => "Checking support on authenticator."
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "firewall_name" => "main"
          "authenticator" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator"
        ]
        "channel" => "security"
      ]
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.375+00:00"
        "message" => "Authenticator does not support the request."
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "firewall_name" => "main"
          "authenticator" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator"
        ]
        "channel" => "security"
      ]
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.389+00:00"
        "message" => "Connecting with parameters {params}"
        "priority" => 200
        "priorityName" => "INFO"
        "context" => [
          "params" => [
            "use_savepoints" => true
            "driver" => "pdo_mysql"
            "idle_connection_ttl" => 600
            "host" => "dv71461-001.eu.clouddb.ovh.net"
            "port" => 35913
            "user" => "USER_clubsns"
            "password" => "<redacted>"
            "driverOptions" => []
            "defaultTableOptions" => []
            "dbname" => "clubsudandsol"
            "charset" => "utf8mb4"
            "collation" => "utf8mb4_unicode_ci"
          ]
        ]
        "channel" => "doctrine"
      ]
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.405+00:00"
        "message" => "Executing statement: {sql} (parameters: {params}, types: {types})"
        "priority" => 100
        "priorityName" => "DEBUG"
        "context" => [
          "sql" => "SELECT m0_.id AS id_0, m0_.name AS name_1, m0_.email AS email_2, m0_.message AS message_3, m0_.status AS status_4, m0_.created_at AS created_at_5, m0_.updated_at AS updated_at_6, m0_.send_at AS send_at_7, m0_.sent_at AS sent_at_8, m0_.delivered_at AS delivered_at_9, m0_.opened_at AS opened_at_10, m0_.clicked_at AS clicked_at_11, m0_.sent AS sent_12, m0_.subject AS subject_13, m0_.origin AS origin_14, m0_.direction AS direction_15, m0_.attachments AS attachments_16, m0_.order_number AS order_number_17, m0_.last_error AS last_error_18, m0_.commercial_type AS commercial_type_19, m0_.recipient_id AS recipient_id_20, m0_.author_id AS author_id_21, m0_.original_message_id AS original_message_id_22 FROM message m0_ WHERE m0_.sent = 0 AND ((m0_.status = ? OR (m0_.status = ? AND m0_.send_at IS NOT NULL AND m0_.send_at <= ?)))"
          "params" => [
            1 => "STATUS_SEND_NOW"
            2 => "STATUS_SCHEDULED"
            3 => "2026-04-28 08:24:01"
          ]
          "types" => [
            1 => Doctrine\DBAL\ParameterType {#766
              +name: "STRING"
            }
            2 => Doctrine\DBAL\ParameterType {#766}
            3 => Doctrine\DBAL\ParameterType {#766}
          ]
        ]
        "channel" => "doctrine"
      ]
      [
        "timestamp" => 1777357441
        "timestamp_rfc3339" => "2026-04-28T06:24:01.408+00:00"
        "message" => "Uncaught PHP Exception Error: "Call to a member function hasRole() on null" at CronController.php line 50"
        "priority" => 500
        "priorityName" => "CRITICAL"
        "context" => [
          "exception" => Error {#759
            #message: "Call to a member function hasRole() on null"
            #code: 0
            #file: "/var/www/html/src/Controller/CronController.php"
            #line: 50
            trace: {
              /var/www/html/src/Controller/CronController.php:50 {
                App\Controller\CronController->send_message(MessageRepository $messageRepository, EntityManagerInterface $entityManager, Security $security, Request $request, EmailService $emailService): Response …
                › $referrer = $request->headers->get('referer', '');if ($security->getUser()->hasRole('ROLE_SUPER_ADMIN') && !empty($referrer) ) {    return $this->redirect($referrer);
              }
              /var/www/html/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: {
                  $messageRepository: App\Repository\MessageRepository {#400 …}
                  $entityManager: ContainerZWwVrAQ\EntityManagerGhost614a58f {#308 …}
                  $security: Symfony\Bundle\SecurityBundle\Security {#78 …}
                  $request: Symfony\Component\HttpFoundation\Request {#2 …}
                  $emailService: App\Service\EmailService {#606 …}
                }
              }
              /var/www/html/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/html/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/html/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/html/vendor/autoload_runtime.php:32 {
                require_once …
                ›         ->getRunner($app)        ->run());
              }
              /var/www/html/public/index.php:5 {
                › 
                › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';arguments: {
                  "/var/www/html/vendor/autoload_runtime.php"
                }
              }
            }
          }
        ]
        "channel" => "request"
      ]
    ]
  ]
  -errorCount: [
    2 => 1
  ]
  -requestStack: Symfony\Component\HttpKernel\Debug\VirtualRequestStack {#142 …}
}

Request Headers

Header Value
accept
"*/*"
connection
"Keep-Alive"
host
"club.agencenrv.fr"
user-agent
"curl/7.68.0"
x-forwarded-for
"51.210.38.50"
x-forwarded-host
"club.agencenrv.fr"
x-forwarded-server
"club.agencenrv.fr"
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
"Tue, 28 Apr 2026 06:24:01 GMT"
x-debug-exception
"Call%20to%20a%20member%20function%20hasRole%28%29%20on%20null"
x-debug-exception-file
"%2Fvar%2Fwww%2Fhtml%2Fsrc%2FController%2FCronController.php:50"
x-debug-token
"5031c2"

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:39
[
  [
    "file" => "/var/www/html/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 39
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/security-bundle/Security.php"
    "line" => 97
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/security-bundle/Security.php"
    "line" => 52
    "function" => "getToken"
    "class" => "Symfony\Bundle\SecurityBundle\Security"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/src/EventSubscriber/MenuSubscriber.php"
    "line" => 42
    "function" => "getUser"
    "class" => "Symfony\Bundle\SecurityBundle\Security"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 115
    "function" => "onControllerEvent"
    "class" => "App\EventSubscriber\MenuSubscriber"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 206
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 126
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 171
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/http-kernel/Kernel.php"
    "line" => 193
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/vendor/autoload_runtime.php"
    "line" => 32
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/html/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/html/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"4391399188d2aac2d24677ea78232fd1"
APP_SHARE_DIR
"var/share"
BREVO_API_KEY
"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"
DEFAULT_URI
"https://club.agencenrv.fr"
MAILER_DSN
"brevo+api://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@default"
SENDER_EMAIL
"noreply@clubsudandsol.com"
SENDER_NAME
"Sud&Sol"

Defined as regular env variables

Key Value
APACHE2_DOCUMENT_ROOT
"/var/www/html"
APACHE2_FILEUPLOADS
"On"
APACHE2_MAX_EXECUTION_TIME
"600"
APACHE2_MEMORYLIMIT
"600M"
APACHE2_POST_MAX_SIZE
"600M"
APACHE2_UPLOAD_MAX_FILESIZE
"600M"
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_PROJECT_DIR
"/var/www/html"
APP_RUNTIME
"Symfony\Component\Runtime\SymfonyRuntime"
APP_RUNTIME_OPTIONS
[
  "project_dir" => "/var/www/html"
]
CONTEXT_DOCUMENT_ROOT
"/var/www/html/public"
CONTEXT_PREFIX
""
DATABASE_URL
"mysql://USER_clubsns:FU2r2DkEsTjBcM7@dv71461-001.eu.clouddb.ovh.net:35913/clubsudandsol?charset=utf8mb4&collation=utf8mb4_unicode_ci"
DOCUMENT_ROOT
"/var/www/html/public"
GATEWAY_INTERFACE
"CGI/1.1"
GPG_KEYS
"1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA"
GROUP_ID
"1000"
HOSTNAME
"0f48f39fc598"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"club.agencenrv.fr"
HTTP_USER_AGENT
"curl/7.68.0"
HTTP_X_FORWARDED_FOR
"51.210.38.50"
HTTP_X_FORWARDED_HOST
"club.agencenrv.fr"
HTTP_X_FORWARDED_SERVER
"club.agencenrv.fr"
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.3.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_MAX_EXECUTION_TIME
"120"
PHP_MEMORY_LIMIT
"4G"
PHP_POST_MAX_SIZE
"10G"
PHP_SELF
"/index.php"
PHP_SHA256
"67f084d36852daab6809561a7c8023d130ca07fc6af8fb040684dd1414934d48"
PHP_UPLOAD_MAX_FILESIZE
"10G"
PHP_URL
"https://www.php.net/distributions/php-8.3.30.tar.xz"
PHP_VERSION
"8.3.30"
PWD
"/var/www/html"
QUERY_STRING
""
REMOTE_ADDR
"172.17.0.1"
REMOTE_PORT
"49634"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1777357441
REQUEST_TIME_FLOAT
1777357441.36
REQUEST_URI
"/cron/message/send"
SCRIPT_FILENAME
"/var/www/html/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"172.17.0.7"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"club.agencenrv.fr"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.66 (Debian) Server at club.agencenrv.fr Port 80</address>\n"
SERVER_SOFTWARE
"Apache/2.4.66 (Debian)"
SHLVL
"0"
SYMFONY_DEFAULT_PACKAGES
"webapp"
SYMFONY_DOTENV_PATH
"/var/www/html/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,APP_SHARE_DIR,DEFAULT_URI,BREVO_API_KEY,MAILER_DSN,SENDER_EMAIL,SENDER_NAME,APP_DEBUG"
SYMFONY_PROJECT_NAME
"clubsudandsol"
SYMFONY_SERVER_MODE
"prod"
SYMFONY_VERSION
"7.4"
USER_ID
"1000"
WORDPRESS_DB_HOST
"nodb"
WORDPRESS_DB_NAME
"byp"
WORDPRESS_DB_PASSWORD
"nopass"
WORDPRESS_DB_USER
"nouser"
WORDPRESS_TABLE_PREFIX
"nodb"
argc
0
argv
[]

Parent Request

Return to parent request (token = 9b4cb2)

Key Value
_controller
"App\Controller\CronController::send_message"
_firewall_context
"security.firewall.map.context.main"
_remove_csp_headers
true
_route
"app_cron_message_send"
_route_params
[]
_security_authenticators
[]
_security_firewall_run
"_security_main"
_security_skipped_authenticators
[
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#305
    -supports: false
    -passport: null
    -duration: null
    -stub: "App\Security\LinkHashAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: App\Security\LinkHashAuthenticator {#303 …}
  }
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#323
    -supports: false
    -passport: null
    -duration: null
    -stub: "Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator {#233 …}
  }
]
_stopwatch_token
"433f52"