Error 500 Internal Server Error

GET https://tuhlla.fxrm.eu/kukhni/baaaaaaa

Forwarded to ErrorController (42bce4)

Exceptions

Could not find form metadata "article2" of type "article".

Exception

RuntimeException

  1. }
  2. $metadata = $typedMetadata->getForms()[$templateKey] ?? null;
  3. if (!$metadata instanceof FormMetadata) {
  4. throw new \RuntimeException(\sprintf('Could not find form metadata "%s" of type "%s".', $templateKey, $type));
  5. }
  6. $templateMetadata = $metadata->getTemplate();
  7. if (!$templateMetadata instanceof TemplateMetadata) {
  1. $templateKey = $dimensionContent->getTemplateKey();
  2. if (!$templateKey) {
  3. throw new NotFoundHttpException(\sprintf('No template found for id "%s" and locale "%s"', $id, $locale));
  4. }
  5. $templateMetadata = $this->resolveTemplateMetadata($dimensionContent::getTemplateType(), $templateKey, $contentLocale);
  6. $defaults = [
  7. 'object' => $dimensionContent,
  8. 'view' => $templateMetadata->getView(),
  9. '_controller' => $templateMetadata->getController(),
  1. return new RouteCollection();
  2. }
  3. $routeDefaultsProvider = $this->routeDefaultsProviderLocator->get($route->getResourceKey());
  4. \assert($routeDefaultsProvider instanceof RouteDefaultsProviderInterface, 'The RouteDefaultsProvider must implement RouteDefaultsProviderInterface but got: ' . \get_debug_type($routeDefaultsProvider));
  5. $defaults = $routeDefaultsProvider->getDefaults($route);
  6. $defaults['_sulu_route'] = $route;
  7. $routeCollection = new RouteCollection();
  8. $symfonyRoute = new SymfonyRoute(
  9. $request->getPathInfo(),
  1. }
  2. public function getRouteCollectionForRequest(Request $request): RouteCollection
  3. {
  4. foreach ($this->routeCollectionForRequestLoaders as $routeCollectionLoader) {
  5. $routeCollection = $routeCollectionLoader->getRouteCollectionForRequest($request);
  6. if (0 !== \count($routeCollection)) {
  7. $routeCollection->addOptions($this->routeDefaultsOptions);
  8. return $routeCollection;
in vendor/symfony-cmf/routing/src/NestedMatcher/NestedMatcher.php -> getRouteCollectionForRequest (line 97)
  1. return $this;
  2. }
  3. public function matchRequest(Request $request): array
  4. {
  5. $collection = $this->routeProvider->getRouteCollectionForRequest($request);
  6. if (!count($collection)) {
  7. throw new ResourceNotFoundException();
  8. }
  9. // Route filters are expected to throw an exception themselves if they
  1. $matcher = $this->getMatcher();
  2. if ($matcher instanceof UrlMatcherInterface) {
  3. $defaults = $matcher->match($request->getPathInfo());
  4. } else {
  5. $defaults = $matcher->matchRequest($request);
  6. }
  7. return $this->applyRouteEnhancers($defaults, $request);
  8. }
  1. return $this->cleanDefaults($defaults);
  2. }
  3. public function matchRequest(Request $request): array
  4. {
  5. $defaults = parent::matchRequest($request);
  6. return $this->cleanDefaults($defaults, $request);
  7. }
  8. /**
  1. if ($router instanceof RequestMatcherInterface) {
  2. if (null === $requestForMatching) {
  3. $requestForMatching = $this->rebuildRequest($pathinfo);
  4. }
  5. return $router->matchRequest($requestForMatching);
  6. }
  7. if ($router instanceof UrlMatcherInterface) {
  8. return $router->match($pathinfo);
  9. }
  10. // otherwise this was only an url generator, move on.
  1. *
  2. * Loops through all routes and tries to match the passed request.
  3. */
  4. public function matchRequest(Request $request): array
  5. {
  6. return $this->doMatch($request->getPathInfo(), $request);
  7. }
  8. /**
  9. * Loops through all routers and tries to match the passed request or url.
  10. *
  1. // add attributes based on the request (routing)
  2. try {
  3. // matching a request is more powerful than matching a URL path + context, so try that first
  4. if ($this->matcher instanceof RequestMatcherInterface) {
  5. $parameters = $this->matcher->matchRequest($request);
  6. } else {
  7. $parameters = $this->matcher->match($request->getPathInfo());
  8. }
  9. $this->logger?->info('Matched route "{route}".', [
  1. // This call is required in all cases, because the default router needs our webspace information
  2. // Would be nice to also only call this if the _requestAnalyzer attribute is set, but it's set on the next line
  3. $this->requestAnalyzer->analyze($request);
  4. $this->baseRouteListener->onKernelRequest($event);
  5. if (false !== $request->attributes->getBoolean(static::REQUEST_ANALYZER, true)) {
  6. $this->requestAnalyzer->validate($request);
  7. }
  8. }
  1. $closure = static function (...$args) use (&$listener, &$closure) {
  2. if ($listener[0] instanceof \Closure) {
  3. $listener[0] = $listener[0]();
  4. $listener[1] ??= '__invoke';
  5. }
  6. ($closure = $listener(...))(...$args);
  7. };
  8. } else {
  9. $closure = $listener instanceof WrappedListener ? $listener : $listener(...);
  10. }
  11. }
in vendor/symfony/event-dispatcher/EventDispatcher.php :: {closure:Symfony\Component\EventDispatcher\EventDispatcher::optimizeListeners():241} (line 206)
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. */
  2. private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
  3. {
  4. // request
  5. $event = new RequestEvent($this, $request, $type);
  6. $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
  7. if ($event->hasResponse()) {
  8. return $this->filterResponse($event->getResponse(), $request, $type);
  9. }
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
Kernel->handle() in public/index.php (line 69)
  1. // When using the HttpCache, you need to call the method in your front controller
  2. // instead of relying on the configuration parameter
  3. // https://symfony.com/doc/6.4/reference/configuration/framework.html#http-method-override
  4. Request::enableHttpMethodParameterOverride();
  5. $request = Request::createFromGlobals();
  6. $response = $kernel->handle($request);
  7. $response->send();
  8. $kernel->terminate($request, $response);

Logs

Level Channel Message
INFO 22:50:08 deprecation User Deprecated: Class "Doctrine\ORM\Proxy\Autoloader" is deprecated. Use native lazy objects instead. (Autoloader.php:74 called by DoctrineBundle.php:136, https://github.com/doctrine/orm/pull/12005, package doctrine/orm)
{
    "exception": {}
}
INFO 22:50:08 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 22:50:08 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "5eb5ba"
    },
    "request_uri": "https://tuhlla.fxrm.eu/_profiler/5eb5ba",
    "method": "GET"
}
INFO 22:50:08 deprecation User Deprecated: Using ArrayAccess on Doctrine\ORM\Mapping\FieldMapping is deprecated and will not be possible in Doctrine ORM 4.0. Use the corresponding property instead. (ArrayAccessImplementation.php:18 called by ReferencesOption.php:72, https://github.com/doctrine/orm/pull/11211, package doctrine/orm)
{
    "exception": {}
}
INFO 22:50:08 deprecation User Deprecated: Specifying the "nullable" attribute for join columns in many-to-many associations (here, Sulu\Bundle\ContactBundle\Entity\Contact::$medias) is a no-op. The ORM will always set it to false. Doing so is deprecated and will be an error in 4.0. (ManyToManyOwningSideMapping.php:133 called by ClassMetadata.php:1448, https://github.com/doctrine/orm/pull/12126, package doctrine/orm)
{
    "exception": {}
}
INFO 22:50:08 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 22:50:08 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 22:50:08 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 22:50:08 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}

Stack Trace

RuntimeException
RuntimeException:
Could not find form metadata "article2" of type "article".

  at vendor/sulu/sulu/packages/article/src/Infrastructure/Sulu/Route/ArticleRouteDefaultsProvider.php:148
  at Sulu\Article\Infrastructure\Sulu\Route\ArticleRouteDefaultsProvider->resolveTemplateMetadata()
     (vendor/sulu/sulu/packages/article/src/Infrastructure/Sulu/Route/ArticleRouteDefaultsProvider.php:95)
  at Sulu\Article\Infrastructure\Sulu\Route\ArticleRouteDefaultsProvider->getDefaults()
     (vendor/sulu/sulu/packages/route/src/Application/Routing/Matcher/RouteCollectionForRequestRouteLoader.php:97)
  at Sulu\Route\Application\Routing\Matcher\RouteCollectionForRequestRouteLoader->getRouteCollectionForRequest()
     (vendor/sulu/sulu/packages/route/src/Infrastructure/SymfonyCmf/Routing/CmfRouteProvider.php:39)
  at Sulu\Route\Infrastructure\SymfonyCmf\Routing\CmfRouteProvider->getRouteCollectionForRequest()
     (vendor/symfony-cmf/routing/src/NestedMatcher/NestedMatcher.php:97)
  at Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher->matchRequest()
     (vendor/symfony-cmf/routing/src/DynamicRouter.php:203)
  at Symfony\Cmf\Component\Routing\DynamicRouter->matchRequest()
     (vendor/symfony-cmf/routing-bundle/src/Routing/DynamicRouter.php:69)
  at Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter->matchRequest()
     (vendor/symfony-cmf/routing/src/ChainRouter.php:161)
  at Symfony\Cmf\Component\Routing\ChainRouter->doMatch()
     (vendor/symfony-cmf/routing/src/ChainRouter.php:134)
  at Symfony\Cmf\Component\Routing\ChainRouter->matchRequest()
     (vendor/symfony/http-kernel/EventListener/RouterListener.php:101)
  at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest()
     (vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/EventListener/RouterListener.php:58)
  at Sulu\Bundle\WebsiteBundle\EventListener\RouterListener->onKernelRequest()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:246)
  at Symfony\Component\EventDispatcher\EventDispatcher::{closure:Symfony\Component\EventDispatcher\EventDispatcher::optimizeListeners():241}()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:159)
  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:193)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:69)