https://kas.webmax.cloud/cache-clear?key=Gz3mtvbLIQW55Tn0fRi1

Exceptions

Call to a member function getRequestUri() on null

Exception

Error

  1.         $this->initNavbar();
  2.         $this->footbar_links = $this->model->getFootbarLinks();
  3.         $this->info = $this->model->getInfo($this->request->getRequestUri());
  4.         $this->mobile = self::isMobile();
  5.         if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
  6.             $this->ipad = true;
  1.      */
  2.     public static function do($container, $lazyLoad = true)
  3.     {
  4.         include_once \dirname(__DIR__, 4).'/src/Controller/PageInfo.php';
  5.         return $container->privates['App\\Controller\\PageInfo'] = new \App\Controller\PageInfo(($container->services['request_stack'] ?? ($container->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())), ($container->privates['App\\Controller\\Database'] ?? $container->load('getDatabaseService')));
  6.     }
  7. }
  1.             $file .= '.php';
  2.         }
  3.         $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  4.         return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
  5.     }
  6.     /**
  7.      * Gets the public 'doctrine' shared service.
  8.      *
  1.         $instance->addRuntimeLoader(new \Twig\RuntimeLoader\ContainerRuntimeLoader(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService, [
  2.             'Symfony\\Bridge\\Twig\\Extension\\HttpKernelRuntime' => ['privates', 'twig.runtime.httpkernel', 'getTwig_Runtime_HttpkernelService', true],
  3.         ], [
  4.             'Symfony\\Bridge\\Twig\\Extension\\HttpKernelRuntime' => '?',
  5.         ])));
  6.         $instance->addGlobal('pageinfo', ($container->privates['App\\Controller\\PageInfo'] ?? $container->load('getPageInfoService')));
  7.         $instance->registerUndefinedFilterCallback([0 => $f, 1 => 'suggestFilter']);
  8.         $instance->registerUndefinedFunctionCallback([0 => $f, 1 => 'suggestFunction']);
  9.         $instance->registerUndefinedTokenParserCallback([0 => $f, 1 => 'suggestTag']);
  10.         (new \Symfony\Bundle\TwigBundle\DependencyInjection\Configurator\EnvironmentConfigurator('F j, Y H:i', '%d days', NULL, 0, '.', ','))->configure($instance);
  1.             $file .= '.php';
  2.         }
  3.         $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  4.         return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
  5.     }
  6.     /**
  7.      * Gets the public 'doctrine' shared service.
  8.      *
  1.         }
  2.         if (null === $method) {
  3.             return false !== $registry ? $this->{$registry}[$id] ?? null : null;
  4.         }
  5.         if (false !== $registry) {
  6.             return $this->{$registry}[$id] ?? $this->{$registry}[$id] = $load ? $this->load($method) : $this->{$method}();
  7.         }
  8.         if (!$load) {
  9.             return $this->{$method}();
  10.         }
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function get(string $id)
  5.     {
  6.         return isset($this->serviceMap[$id]) ? ($this->factory)(...$this->serviceMap[$id]) : parent::get($id);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * @return string[] A list of template files to preload on PHP 7.4+
  2.      */
  3.     public function warmUp(string $cacheDir)
  4.     {
  5.         if (null === $this->twig) {
  6.             $this->twig = $this->container->get('twig');
  7.         }
  8.         $files = [];
  9.         foreach ($this->iterator as $template) {
  1.                 }
  2.                 if ($this->onlyOptionalsEnabled && !$warmer->isOptional()) {
  3.                     continue;
  4.                 }
  5.                 $preload[] = array_values((array) $warmer->warmUp($cacheDir));
  6.             }
  7.         } finally {
  8.             if ($collectDeprecations) {
  9.                 restore_error_handler();
  1.     {
  2.         $kernel = $this->getApplication()->getKernel();
  3.         $warmer = $kernel->getContainer()->get('cache_warmer');
  4.         // non optional warmers already ran during container compilation
  5.         $warmer->enableOnlyOptionalWarmers();
  6.         $preload = (array) $warmer->warmUp($cacheDir);
  7.         if ($preload && file_exists($preloadFile = $warmupDir.'/'.$kernel->getContainer()->getParameter('kernel.container_class').'.preload.php')) {
  8.             Preloader::append($preloadFile, $preload);
  9.         }
  10.     }
  1.                 if (!$input->getOption('no-optional-warmers')) {
  2.                     if ($output->isVerbose()) {
  3.                         $io->comment('Warming up optional cache...');
  4.                     }
  5.                     $this->warmupOptionals($useBuildDir ? $realCacheDir : $warmupDir, $warmupDir);
  6.                 }
  7.             }
  8.             if (!$fs->exists($warmupDir.'/'.$containerDir)) {
  9.                 $fs->rename($realBuildDir.'/'.$containerDir, $warmupDir.'/'.$containerDir);
  1.         $input->validate();
  2.         if ($this->code) {
  3.             $statusCode = ($this->code)($input, $output);
  4.         } else {
  5.             $statusCode = $this->execute($input, $output);
  6.             if (!\is_int($statusCode)) {
  7.                 throw new \TypeError(sprintf('Return value of "%s::execute()" must be of the type int, "%s" returned.', static::class, get_debug_type($statusCode)));
  8.             }
  9.         }
  1.         try {
  2.             $this->dispatcher->dispatch($event, ConsoleEvents::COMMAND);
  3.             if ($event->commandShouldRun()) {
  4.                 $exitCode = $command->run($input, $output);
  5.             } else {
  6.                 $exitCode = ConsoleCommandEvent::RETURN_CODE_DISABLED;
  7.             }
  8.         } catch (\Throwable $e) {
  9.             $event = new ConsoleErrorEvent($input, $output, $e, $command);
  1.             if ($this->registrationErrors) {
  2.                 $this->renderRegistrationErrors($input, $output);
  3.                 $this->registrationErrors = [];
  4.             }
  5.             return parent::doRunCommand($command, $input, $output);
  6.         }
  7.         $returnCode = parent::doRunCommand($command, $input, $output);
  8.         if ($this->registrationErrors) {
in vendor/symfony/console/Application.php -> doRunCommand (line 301)
  1.         if ($command instanceof LazyCommand) {
  2.             $command = $command->getCommand();
  3.         }
  4.         $this->runningCommand = $command;
  5.         $exitCode = $this->doRunCommand($command, $input, $output);
  6.         $this->runningCommand = null;
  7.         return $exitCode;
  8.     }
  1.             $this->renderRegistrationErrors($input, $output);
  2.         }
  3.         $this->setDispatcher($this->kernel->getContainer()->get('event_dispatcher'));
  4.         return parent::doRun($input, $output);
  5.     }
  6.     /**
  7.      * {@inheritdoc}
  8.      */
  1.         }
  2.         try {
  3.             $this->configureIO($input, $output);
  4.             $exitCode = $this->doRun($input, $output);
  5.         } catch (\Exception $e) {
  6.             if (!$this->catchExceptions) {
  7.                 throw $e;
  8.             }
Application->run() in src/Controller/Base.php (line 74)
  1.             'cache:clear'
  2.         ]);
  3.         $output = new BufferedOutput();
  4.         try {
  5.             $application->run($input, $output);
  6.         } catch (\Exception $e) {
  7.             return new Response($e->getMessage());
  8.         }
  9.         $content = $output->fetch();
in vendor/symfony/http-kernel/HttpKernel.php -> clearCacheProd (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/clients/client0/web40/private/vendor/autoload_runtime.php') in /var/www/clients/client0/web40/web/index.php (line 9)
  1. //ini_set('display_errors', '1');
  2. use App\Kernel;
  3. use Symfony\Component\Dotenv\Dotenv;
  4. require_once dirname(__DIR__).'/private/vendor/autoload_runtime.php';
  5. require_once dirname(__DIR__).'/private/vendor/facebook/php-graph-sdk-5.x/src/Facebook/autoload.php';
  6. return function (array $context) {
  7.     (new Dotenv())->usePutenv()->bootEnv(dirname(__DIR__).'/private/.env');
  8.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);

Stack Trace

Error
Error:
Call to a member function getRequestUri() on null

  at src/Controller/PageInfo.php:145
  at App\Controller\PageInfo->__construct()
     (var/cache/pro_/ContainerItbFYuo/getPageInfoService.php:22)
  at ContainerItbFYuo\getPageInfoService::do()
     (var/cache/prod/ContainerItbFYuo/App_KernelProdDebugContainer.php:225)
  at ContainerItbFYuo\App_KernelProdDebugContainer->load()
     (var/cache/pro_/ContainerItbFYuo/get_Container_Private_TwigService.php:96)
  at ContainerItbFYuo\get_Container_Private_TwigService::do()
     (var/cache/prod/ContainerItbFYuo/App_KernelProdDebugContainer.php:225)
  at ContainerItbFYuo\App_KernelProdDebugContainer->load()
     (vendor/symfony/dependency-injection/Container.php:428)
  at Symfony\Component\DependencyInjection\Container->getService()
     (vendor/symfony/dependency-injection/Argument/ServiceLocator.php:42)
  at Symfony\Component\DependencyInjection\Argument\ServiceLocator->get()
     (vendor/symfony/twig-bundle/CacheWarmer/TemplateCacheWarmer.php:46)
  at Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer->warmUp()
     (vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php:99)
  at Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp()
     (vendor/symfony/framework-bundle/Command/CacheClearCommand.php:250)
  at Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmupOptionals()
     (vendor/symfony/framework-bundle/Command/CacheClearCommand.php:149)
  at Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute()
     (vendor/symfony/console/Command/Command.php:298)
  at Symfony\Component\Console\Command\Command->run()
     (vendor/symfony/console/Application.php:1058)
  at Symfony\Component\Console\Application->doRunCommand()
     (vendor/symfony/framework-bundle/Console/Application.php:96)
  at Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand()
     (vendor/symfony/console/Application.php:301)
  at Symfony\Component\Console\Application->doRun()
     (vendor/symfony/framework-bundle/Console/Application.php:82)
  at Symfony\Bundle\FrameworkBundle\Console\Application->doRun()
     (vendor/symfony/console/Application.php:171)
  at Symfony\Component\Console\Application->run()
     (src/Controller/Base.php:74)
  at App\Controller\Base->clearCacheProd()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:35)
  at require_once('/var/www/clients/client0/web40/private/vendor/autoload_runtime.php')
     (/var/www/clients/client0/web40/web/index.php:9)