Forwarded to ErrorController (f8e25e)

Exceptions

  1. No route found for "GET https://yackr.io/admin/qrcode/01a14d9b-53d9-7b4e-9b94-bcf33d8cd05b/delete": Method Not Allowed (Allow: POST)

    HTTP 405 Method Not Allowed

  2. Symfony\Component\Routing\Exception\MethodNotAllowedException

Stack Trace

throw new NotFoundHttpException($message, $e);
} catch (MethodNotAllowedException $e) {
$message = \sprintf('No route found for "%s %s": Method Not Allowed (Allow: %s)', $request->getMethod(), $request->getUriForPath($request->getPathInfo()), implode(', ', $e->getAllowedMethods()));
throw new MethodNotAllowedHttpException($e->getAllowedMethods(), $message, $e);
}
}
public function onKernelException(ExceptionEvent $event): void
{
RouterListener->onKernelRequest() in vendor/symfony/event-dispatcher/Debug/WrappedListener.php (line 122)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
} finally {
if ($e->isStarted()) {
$e->stop();
}
TraceableEventDispatcher->dispatch() in vendor/symfony/http-kernel/HttpKernel.php (line 174)
*/
private function handleRaw(Request $request, int $type = self::MAIN_REQUEST, ?ControllerMetadata &$controllerMetadata = null): Response
{
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
HttpKernel->handleRaw() in vendor/symfony/http-kernel/HttpKernel.php (line 80)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
$response = null;
try {
return $response = $this->handleRaw($request, $type, $controllerMetadata);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
HttpKernel->handle() in vendor/symfony/http-kernel/Kernel.php (line 156)
if (!$this->handlingHttpCache) {
$this->resetServices = true;
}
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
) {
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send(false);
if (\function_exists('fastcgi_finish_request') && !$this->debug) {
fastcgi_finish_request();
HttpKernelRunner->run() in vendor/autoload_runtime.php (line 32)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
require_once('/var/www/html/webapp/vendor/autoload_runtime.php') in public/index.php (line 5)
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return static function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};

Stack Trace

$allow = $allowSchemes = $trailingSlashSchemes = [];
if ($ret = $this->doMatch($pathinfo, $allow, $allowSchemes, $trailingSlashSchemes)) {
return $ret;
}
if ($allow) {
throw new MethodNotAllowedException(array_keys($allow));
}
if (!$this instanceof RedirectableUrlMatcherInterface) {
throw new ResourceNotFoundException(\sprintf('No routes found for "%s".', $pathinfo));
}
if (!\in_array($this->context->getMethod(), ['HEAD', 'GET'], true)) {
CompiledUrlMatcher->match() in vendor/symfony/routing/Matcher/UrlMatcher.php (line 102)
$this->request = $request;
$originalContext = $this->context;
$this->context = (clone $originalContext)->fromRequest($request);
try {
return $this->match($request->getPathInfo());
} finally {
$this->context = $originalContext;
$this->request = null;
}
}
UrlMatcher->matchRequest() in vendor/symfony/routing/Router.php (line 188)
if (!$matcher instanceof RequestMatcherInterface) {
// fallback to the default UrlMatcherInterface
return $matcher->match($request->getPathInfo());
}
return $matcher->matchRequest($request);
}
/**
* Gets the UrlMatcher or RequestMatcher instance associated with this Router.
*/
// add attributes based on the request (routing)
try {
// matching a request is more powerful than matching a URL path + context, so try that first
if ($this->matcher instanceof RequestMatcherInterface) {
$parameters = $this->matcher->matchRequest($request);
} else {
$parameters = $this->matcher->match($request->getPathInfo());
}
$this->logger?->info('Matched route "{route}".', [
RouterListener->onKernelRequest() in vendor/symfony/event-dispatcher/Debug/WrappedListener.php (line 122)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
} finally {
if ($e->isStarted()) {
$e->stop();
}
TraceableEventDispatcher->dispatch() in vendor/symfony/http-kernel/HttpKernel.php (line 174)
*/
private function handleRaw(Request $request, int $type = self::MAIN_REQUEST, ?ControllerMetadata &$controllerMetadata = null): Response
{
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
HttpKernel->handleRaw() in vendor/symfony/http-kernel/HttpKernel.php (line 80)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
$response = null;
try {
return $response = $this->handleRaw($request, $type, $controllerMetadata);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
HttpKernel->handle() in vendor/symfony/http-kernel/Kernel.php (line 156)
if (!$this->handlingHttpCache) {
$this->resetServices = true;
}
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
) {
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send(false);
if (\function_exists('fastcgi_finish_request') && !$this->debug) {
fastcgi_finish_request();
HttpKernelRunner->run() in vendor/autoload_runtime.php (line 32)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
require_once('/var/www/html/webapp/vendor/autoload_runtime.php') in public/index.php (line 5)
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return static function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};