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.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2513788-features-no_extension_error-03.patch | 680 bytes | Jose Reyero |
Comments
Comment #1
leewillis77 CreditAttribution: leewillis77 at Upbeat Productions commentedJust to note that this is with features dev updated this morning.
Comment #2
leewillis77 CreditAttribution: leewillis77 at Upbeat Productions commentedI can confirm that this issue is still present with D8 beta12.
Comment #3
Jose Reyero CreditAttribution: Jose Reyero as a volunteer commentedAttached patch, this is similar to #2497155: getComponentNames must be of the type array
Comment #4
leewillis77 CreditAttribution: leewillis77 at Upbeat Productions commentedThat patch prevents the fatal error for me - thanks.
Comment #5
Jose Reyero CreditAttribution: Jose Reyero at Axel Springer España commentedFixing attribution for this one.
Comment #6
HazaI can confirm the patch fixes the issue.
Pretty straitforward patch, I think this could be commited;
Thanks !
Comment #7
gokulnk CreditAttribution: gokulnk at Azri Solutions commentedI can confirm that this patch fixes the issue.
Comment #9
mpotter CreditAttribution: mpotter commentedLooks good. Committed to 45bd1db.