The following Fatal Error is thrown on the features page (admin/config/development/configuration/features) whenever a feature has been added to the filesystem.

Recoverable fatal error: Argument 1 passed to Drupal\Core\Config\InstallStorage::getComponentFolder() must be an instance of Drupal\Core\Extension\Extension, string given, called in /home/webserver/core/lib/Drupal/Core/Config/InstallStorage.php on line 202 and defined in Drupal\Core\Config\InstallStorage->getComponentFolder() (line 241 of core/lib/Drupal/Core/Config/InstallStorage.php).

To reproduce this on a fresh install of Drupal 8.0.0-beta11:

  • Enable features, and features_ui
  • Head to admin/config/development/configuration/features
  • Select one of the pre-identified features - e.g. Article
  • Hit "Write" to export the feature

You'll receive a notification "Package Article written to modules/custom/article.", but also the error noted above.

Note: I mentioned this in #2497155-7 and it's still present after the patches in that issue are applied. Since it is a separate error to those given in that issue I'm raising it as a new item, although I expect it's closely related.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

leewillis77’s picture

Just to note that this is with features dev updated this morning.

leewillis77’s picture

I can confirm that this issue is still present with D8 beta12.

Jose Reyero’s picture

Status: Active » Needs review
FileSize
680 bytes
leewillis77’s picture

That patch prevents the fatal error for me - thanks.

Jose Reyero’s picture

Fixing attribution for this one.

Haza’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm the patch fixes the issue.
Pretty straitforward patch, I think this could be commited;

Thanks !

gokulnk’s picture

I can confirm that this patch fixes the issue.

  • mpotter committed 45bd1db on authored by Jose Reyero
    Issue #2513788 by Jose Reyero: Fatal error when features added to site
    
mpotter’s picture

Status: Reviewed & tested by the community » Fixed

Looks good. Committed to 45bd1db.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.