I just installed a fresh Drupal from CVS and after our new installer system and creating my first account, I got this error:
Wrong parameter count for max() in user.module on line 1212.
I think the reasons is the return value of drupal_get_schema_versions('system') in install.inc. It should return array in all cases but it sometimes returns FALSE.
Line 1212 is:
drupal_set_installed_schema_version('system', max(drupal_get_schema_versions('system')));
I cannot provide a patch since I am not sure that it is OK to return an empty array in drupal_get_schema_versions.
It is reproducible. Just install a fresh Drupal CVS and create your first account.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | user_module_max_1.patch | 418 bytes | Zack Rosen |
Comments
Comment #1
Zack Rosen commenteddrupal_load_updates() used to be called automatically but has now been moved into a function.
Comment #2
Steven commentedSorry Zack ;).
http://drupal.org/node/76209