Problem:
\Drupal\Core\Routing\RouteCompiler::compile($route) generates a \Drupal\Core\Routing\CompiledRoute object but without injecting the '$route' in it. This causes "Notice: Undefined property: Drupal\Core\Routing\CompiledRoute::$route" when the methodes getOptions, getDefaults and getRequirements are called.
The issue can be easily reproduced with enabled 'Devel' module on page devel/php:
$route = new \Symfony\Component\Routing\Route('/');
\Drupal\Core\Routing\RouteCompiler::compile($route)->getDefaults();
Steps to reproduce in Drupal 9
For Drupal 9, devel
module has removed the devel/php
page so you have to use the devel_php
module.
All messages, with backtrace information -- /admin/config/development/logging
$route = new \Symfony\Component\Routing\Route('/');
\Drupal\Core\Routing\RouteCompiler::compile($route)->getDefaults();
Fixed
9.1
It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.
Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.