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