I received the following errors when upgrading from 6.x-2.3 to the latest dev version of Commons from Drupal.org.

warning: array_merge() [function.array-merge]: Argument #2 is not an array in .../commons-6.x-2.3/update.php on line 173.
warning: Invalid argument supplied for foreach() in .../commons-6.x-2.3/update.php on line 337.

ALTER TABLE {password_policy} ADD UNIQUE KEY name (name)
Failed:
Update #6004
ALTER TABLE {password_policy_role} ADD `name` VARCHAR(64) NOT NULL DEFAULT ''
Failed:
Update #6005
update {password_policy_role} pr, {password_policy} pp set pr.name = pp.name where pr.pid = pp.pid
Update #6006
ALTER TABLE {password_policy_role} ADD UNIQUE KEY name (rid, name)
Failed:

CommentFileSizeAuthor
#1 1348434-commons-update-errors.patch1016 bytesezra-g

Comments

ezra-g’s picture

Status: Active » Needs review
StatusFileSize
new1016 bytes

Seems to be caused by a missing return from a Commons_core.install hook_update_N() implementation and the referenced patch to password_policy.

ezra-g’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.