500 Internal Server Error for non logged in user on Landing Pages

My Mautic version is: v4.4.4
My PHP version is: 7.4.32
My Database type and version is: MYSQL 5.7.39-42

My problem is:
Hello There, im having a big issue on my Mautic.
Somehow, without any changes or updates being made, the landing pages present the message: “500 Internal Server Error” to any user who is not logged in.

When I’m logged into Mautic I have access to the same pages normally.

Mautic forms loaded on external pages work perfectly and so do email pages. The problem is only on the landing pages.

Does anyone have a solution for this problem?
Thanks for the support :wink:

These errors are showing in the log:
[2023-01-05 01:39:37] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Argument 1 passed to “Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()” must be an object, “NULL” given.” at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php line 63 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, "NULL" given. at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:63)”} {“hostname”:“5f75bf7b5497”,“pid”:2810}
[2023-01-05 01:39:37] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Argument 1 passed to “Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()” must be an object, “NULL” given.” at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php line 63 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, "NULL" given. at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:63)”} {“hostname”:“5f75bf7b5497”,“pid”:2792}
[2023-01-05 01:45:05] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Argument 1 passed to “Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()” must be an object, “NULL” given.” at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php line 63 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, "NULL" given. at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:63)”} {“hostname”:“5f75bf7b5497”,“pid”:2786}
[2023-01-05 01:45:06] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Argument 1 passed to “Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()” must be an object, “NULL” given.” at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php line 63 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, "NULL" given. at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:63)”} {“hostname”:“5f75bf7b5497”,“pid”:2794}
[2023-01-05 01:46:57] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Argument 1 passed to “Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()” must be an object, “NULL” given.” at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php line 63 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, "NULL" given. at /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:63)”} {“hostname”:“5f75bf7b5497”,“pid”:2785}

Steps I have tried to fix the problem:

  • Restart Apache Server
  • Clear Cache
  • Disable plugins and page tracking codes