- Issue created by @m4olivei
- ๐ฎ๐ณIndia Abby.Mns
rohit.mns โ made their first commit to this issueโs fork.
- ๐จ๐ฆCanada m4olivei Grimsby, ON
The related issue here was reverted and re-opened. Marking this one as a duplicate.
I started noticing a PHP WSOD today and after some xdebug'ing, traced it back to ๐ SDC *.component.yml metadata is cached aggressively, gets in the way of component development Active :
TypeError: Drupal\Core\Plugin\DefaultPluginManager::doGetDefinition(): Argument #1 ($definitions) must be of type array, null given, called in /var/www/html/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php on line 25 in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 43 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Reviewing the MR, the overridden getDefinitions
method does not call the parent method when Twig debugging is on. What appears to be missing in relation to the parent is a call to $this->setCachedDefinitions
, which in turn sets $this->definitions
, which is depended on in the place where the error occurs.
Active
11.1 ๐ฅ
single-directory components
rohit.mns โ made their first commit to this issueโs fork.
The related issue here was reverted and re-opened. Marking this one as a duplicate.