Exceptions
Exception
TypeError
in
src/Controller/LibraryController.php
(line 84)
public function RecordById(Request $request, DatabaseService $databaseService, int $recordId, ?string $languageCode = null): Response{$record = $databaseService->GetRecord($recordId, $languageCode);if ($record === null || ($languageCode === null && (!$record->Languages || count($record->Languages) <= 0)))return $this->createNotFoundException('The record does not exit');if ($languageCode !== null && (!$record->Languages || count($record->Languages) <= 0))return $this->createNotFoundException('The record does not exit for this language');$displayLanguage = null;
$id = IdentifierHandling::IdentifierToInt($recordId);if ($id === null)throw $this->createNotFoundException('The record does not exist');return $this->RecordById($request, $databaseService, $id, $languageCode);}#[Route('/{_locale}/s', name: 'search')]public function Search(Request $request, DatabaseService $databaseService,#[MapQueryParameter] string $q = '',
in
vendor/symfony/http-kernel/HttpKernel.php
->
Record
(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 191)
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 |
|---|---|---|
| DEBUG 12:35:39 | php |
User Notice: Install the curl extension or run "composer require amphp/http-client:^5" to perform async HTTP operations, including full HTTP/2 support {
"exception": {
"severity": 1024,
"file": "/var/www/library/vendor/symfony/http-client/HttpClient.php",
"line": 64,
"trace": [
{
"file": "/var/www/library/var/cache/dev/ContainerHoHGkxs/App_KernelDevDebugContainer.php",
"line": 1264,
"function": "create",
"class": "Symfony\\Component\\HttpClient\\HttpClient",
"type": "::"
}
],
"count": 1
}
}
|
| INFO 12:35:39 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "6d92a6"
},
"request_uri": "https://library.freie-volksmission.de/_profiler/6d92a6?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
TypeError
|
|---|
TypeError:
App\Controller\LibraryController::RecordById(): Return value must be of type Symfony\Component\HttpFoundation\Response, Symfony\Component\HttpKernel\Exception\NotFoundHttpException returned
at src/Controller/LibraryController.php:84
at App\Controller\LibraryController->RecordById()
(src/Controller/LibraryController.php:133)
at App\Controller\LibraryController->Record()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:191)
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:32)
at require_once('/var/www/library/vendor/autoload_runtime.php')
(public/index.php:5)
|