- πΊπΈUnited States mmrtnt
Adding just to share.
I had a problem with four modules (three from composer, one custom) not showing up when running config import. I could use drush to "en" them, but config imports kept failing for "Unable to install module since it does not exist"
I was able to get around this by modifying ExtensionList.php and commenting out the cache retrieval section. Apparently even after numerous composer removes, deletes and composer requires, the modules were not getting scanned and put in the module list cache.
This is on Drupal 9.4.7.
274 public function getList() { 275 if ($this->extensions !== NULL) { 276 return $this->extensions; 277 } 278 /* 279 if ($cache = $this->cache->get($this->getListCacheId())) { 280 $this->extensions = $cache->data; 281 return $this->extensions; 282 } 283 */ 284 $extensions = $this->doList(); 285 $this->cache->set($this->getListCacheId(), $extensions); 286 $this->extensions = $extensions; 287 return $this->extensions;