• In a fresh Drupal install enable configuration module.
  • Go to "admin/config/system/configuration/migrate".
  • Select all components and hit Download Configurations .

Warning: Cannot use a scalar value as an array in configuration_download_config() (line 827 of /var/www/profile_test/sites/all/modules/configuration/configuration.admin.inc)

Warning: Cannot use a scalar value as an array in configuration_download_config() (line 828 of /var/www/profile_test/sites/all/modules/configuration/configuration.admin.inc)

The warning pretty self explanatory.

Comments

dagmar’s picture

dagmar’s picture

Status: Active » Needs review
StatusFileSize
new2.85 KB

Here is the patch for both issues.

GDrupal’s picture

StatusFileSize
new3.05 KB

The issue was still triggering for me.. I have added some default elements to the component array to avoid the warnings. It seems to be doing the trick for now, but perhaps we need to define exactly the structure of the config.export file and double check if it's consistent in all places.

lucascaro’s picture

Issue tags: +Needs tests

Thanks @dagmar and @GDrupal!

If you know how to replicate it in a test it would be awesome to have it and also check if the exported file is correct in those cases. Otherwise we need to manually check the configuration file and mark this RTBC.

lucascaro’s picture

lucascaro’s picture

Issue tags: -Needs tests

Status: Needs review » Needs work
Issue tags: +Needs tests

The last submitted patch, 1698432.notices_migrate_page.3.patch, failed testing.

dagmar’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
StatusFileSize
new6.56 KB
new2.47 KB

Well, I have included some tests to replicate the warnings.

Also, I think I have founded the problem with the issue described in #3.

GDrupal’s picture

Status: Needs review » Reviewed & tested by the community

Looks Amazing! RTBC

lucascaro’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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