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.

CommentFileSizeAuthor
#1 user_module_max_1.patch418 bytesZack Rosen

Comments

Zack Rosen’s picture

StatusFileSize
new418 bytes

drupal_load_updates() used to be called automatically but has now been moved into a function.

Steven’s picture

Status: Active » Closed (duplicate)