Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291711

Ensure SearchPlugin has a configuration array

$
0
0

Problem/Motivation

Running migrate-import using drush/drush:^10 from a drupal 6 site to drupal 8.8. The drupal 6 site has core search enabled.

An exception is thrown from Drupal\search\Plugin\ConfigurableSearchPluginBase::setConfiguration()

TypeError: Argument 1 passed to Drupal\search\Plugin\ConfigurableSearchPluginBase::setConfiguration() must be of the type array, null given, called in /var/www/sites/abcdef/web/core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php on line 106 in Drupal\search\Plugin\ConfigurableSearchPluginBase->setConfiguration() (line 46 of /var/www/sites/abcdef/web/core/modules/search/src/Plugin/ConfigurableSearchPluginBase.php)

Proposed resolution

Modify the migration so that there is always a configuration array that is, by default, empty. These are plugins and plugins have a configuration array, so let't make sure one is available.

Remaining tasks

Review
Commit

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A


Viewing all articles
Browse latest Browse all 291711

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>