Exceptions
Exception
ErrorException
in
src/Controller/User/GuestbookController.php
(line 48)
}
public function index(Request $request, string $username, int $page): Response
{
$member = $this->memberService->getMemberDetailByUsername($username);
if ($this->mpService->isGuestbookDisabled($member['id'])) {
$this->addFlash('info', $username . ' hat das Gästebuch deaktiviert.');
return $this->redirectToRoute('app_user_profile_detail', ['username' => $username]);
}
if (!is_array($member) || $member['is_active'] === false) {
$this->addFlash('info', 'Den Nutzer gibt es nicht mehr.');
* @throws \Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface
* @throws \Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface
*/
public function guestbook(Request $request, string $username, GuestbookController $gbController, int $page = 1): Response
{
return $gbController->index($request, $username, $page);
}
public static function getSubscribedServices()
{
$services = parent::getSubscribedServices();
in
vendor/symfony/http-kernel/HttpKernel.php
->
guestbook
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$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;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Logs
Level | Channel | Message |
---|---|---|
INFO 02:20:04 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. { "exception": {} } |
INFO 02:20:04 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead. { "exception": {} } |
INFO 02:20:04 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "latest" }, "request_uri": "https://frontend-dev.frivol.com/_profiler/latest?ip=40.77.167.77", "method": "GET" } |
INFO 02:20:04 | php |
Deprecated: Creation of dynamic property App\Twig\MemberMediaExtension::$token is deprecated { "exception": {} } |
INFO 02:20:04 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.factory.service" service is deprecated, use "session.storage.factory.native", "session.storage.factory.php_bridge" or "session.storage.factory.mock_file" instead. { "exception": {} } |
Stack Trace
ErrorException
|
---|
ErrorException: Warning: Trying to access array offset on value of type null at src/Controller/User/GuestbookController.php:48 at App\Controller\User\GuestbookController->index() (src/Controller/User/ProfileController.php:251) at App\Controller\User\ProfileController->guestbook() (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() (public/index.php:38) |