- Issue created by @kopeboy
- 🇮🇹Italy kopeboy Milan
What I tried:
- install
content_as_config
andfeeds_as_config
- create 1 feed
- export it with
drush cacx feeds_feed
- put the
content_as_config.feeds_feed.yml
inside my_module/config/install - re-install the site with
drush site:install
drush en my_module
(content_as_config:feeds_as_config is a dependency)drush cex
to provecontent_as_config.feeds_feed.yml
was in the active configuration: it was as the same file of my_module/config/install was exporteddrush caci feeds_feed
to import the feed.. ERROR:- tried going to /admin/structure/content-as-config/feeds-import and received white screen with 15 php logs
Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drupal\Core\Extension\Dependency::createFromString() (line 132 of /var/www/html/web/core/lib/Drupal/Core/Extension/Dependency.php)
debug (repeated 6 times)Deprecated function: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\Core\Extension\Dependency::createFromString() (line 126 of /var/www/html/web/core/lib/Drupal/Core/Extension/Dependency.php)
debug (repeated 6 times), with 1 error and 2 warnings in the middle..TypeError: Drupal\feeds_as_config\Form\FeedsImportForm::getLabel(): Return value must be of type string, null returned in Drupal\feeds_as_config\Form\FeedsImportForm->getLabel() (line 32 of /var/www/html/web/modules/contrib/content_as_config/modules/feeds_as_config/src/Form/FeedsImportExportTrait.php).
Warning: Undefined array key "title" in Drupal\feeds_as_config\Form\FeedsImportForm->getLabel() (line 32 of /var/www/html/web/modules/contrib/content_as_config/modules/feeds_as_config/src/Form/FeedsImportExportTrait.php)
Warning: Undefined array key "uuid" in Drupal\content_as_config\Form\ImportBase->buildForm() (line 60 of /var/www/html/web/modules/contrib/content_as_config/src/Form/ImportBase.php)
Then I re-tried (after site reinstall) to FIRST import the single config using the module
config_import_single
with its command:
drush cis modules/my/module/config/install/content_as_config.feeds_feed.yml
and THENdrush caci feeds_feed
and it finally worked.Was this the expected behaviour? Why?
Thank you. - install