Exceptions
Exception
TypeError
in
src/Entity/Content/PageRating.php
(line 74)
public function getRating(): string{return $this->rating;}public function setRating(string $rating): void{$this->rating = $rating;}public function getPage(): ?Page
/** @var Page $page */$page = $this->entityManager->getRepository(Page::class)->find($id);$rating = new PageRating();$rating->setPage($page);$rating->setRating($request->query->get('rating'));$this->entityManager->persist($rating);$this->entityManager->flush();$this->addFlash('success', 'Vielen Dank für dein Feedback!');
in
vendor/symfony/http-kernel/HttpKernel.php
->
page_rate
(line 183)
$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, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$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)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 06:58:44 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "c8b15b"
},
"request_uri": "https://hilfe.rentsoft.de/_profiler/c8b15b?panel=exception&type=request",
"method": "GET"
}
|
| INFO 06:58:44 | php |
User Deprecated: Since symfony/var-exporter 7.3: The "Symfony\Component\VarExporter\LazyGhostTrait" trait is deprecated, use native lazy objects instead. {
"exception": {}
}
|
Stack Trace
|
TypeError
|
|---|
TypeError:
App\Entity\Content\PageRating::setRating(): Argument #1 ($rating) must be of type string, null given, called in /var/www/x0/src/Controller/Content/IndexController.php on line 404
at src/Entity/Content/PageRating.php:74
at App\Entity\Content\PageRating->setRating(null)
(src/Controller/Content/IndexController.php:404)
at App\Controller\Content\IndexController->page_rate(object(Request), 422)
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/var/www/x0/vendor/autoload_runtime.php')
(public/index.php:5)
|