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

D6 Internationalization / Migration: " [warning] array_key_exists() expects parameter 2 to be array, null given VocabularyPerType.php:40"

$
0
0

D6 MySQL to D8.6.x PgSQL Migration

When using source plugin d6_taxonomy_vocabulary_per_type, if the Internationalization module was not enabled in D6 and there is no variable set 'i18ntaxonomy_vocabulary', the Migrate source outputs a harmless but noisy error.

In the Migrate source, prepareRow defaults $i17ntaxonomy_vocab to NULL if the variable is unset, then passes it to in_array.

We could either default it to an empty array (which handles the case of it being unset), or check the input with is_array() (which also handles cases where it's set to an unexpected value such as an integer).


Viewing all articles
Browse latest Browse all 294713

Trending Articles



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