Fatal error: Call to a member function getStatus() on null in /var/www/quotatrip/src/AppBundle/EventListener/RedirectListener.php on line 170

Fatal error: Uncaught exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Error: Call to a member function getStatus() on null' in /var/www/quotatrip/src/AppBundle/EventListener/RedirectListener.php:170 Stack trace: #0 {main} Next exception 'InvalidArgumentException' with message 'The file "../web/GeoLite2-City.mmdb" does not exist or is not readable.' in /var/www/quotatrip/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php:52 Stack trace: #0 /var/www/quotatrip/vendor/geoip2/geoip2/src/Database/Reader.php(54): MaxMind\Db\Reader->__construct('../web/GeoLite2...') #1 /var/www/quotatrip/src/AppBundle/EventListener/LocaleSubscriber.php(42): GeoIp2\Database\Reader->__construct('../web/GeoLite2...') #2 /var/www/quotatrip/src/AppBundle/EventListener/LocaleSubscriber.php(76): QT\AppBundle\EventListener\LocaleSubscriber->getDefaultLocale('172.70.178.222') #3 [internal function]: QT\AppBundle\EventListener\LocaleSubscriber->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'ke in /var/www/quotatrip/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 52