Due to a bug in common.inc expecting $db_prefix to be a string, rather than an array, Drupal throws errors since preg_match expects parameter 2 to be a string rather than an array. The bug was introduced in this commit:
http://cvs.drupal.org/viewvc.py/drupal/drupal/includes/common.inc?r1=1.7...
In effect, using $db_prefix as an array as suggested in the Multisite Login README file isn't possible.
Rather than hack core and cause the death of kittens I'd like to learn of a nice workaround. Does anyone know of one?
Thanks.
Comments
Comment #1
solipsist commentedwarning: preg_match() expects parameter 2 to be string, array given in drupal/includes/common.inc on line 485.
Comment #2
dalinThis bug was introduced in #482646: Backport SimpleTest testing in drupal_http_request(), and is also being fixed there. You can apply the latest patch for D6 there, which will undoubtedly be committed before the next D6 release.
Comment #3
solipsist commentedExcellent! Thank you very much for directing me to the patch!