Upon creation or change of a user by an admin the following error occurs:

PHP Fatal error: Call to a member function condition() on a non-object in /sites/all/modules/password_policy/constraints/constraint_delay.inc on line 34

The user is not created in the user-list and a user with UID 0 appears in the database. Upon change a blank page is shown and the changes are not made.

This issue appeared on the latest Drupal-version with active ACL- and AES-modules. It also appeared with deactivated AES-module. If ACL was deactivated it worked. If Password policy was first activated and afterwards ACL, it also worked.

Comments

erikwebb’s picture

Status: Active » Needs review
StatusFileSize
new606 bytes

It appears this problem is caused when Password Policy is fired before the account is created. I'm not sure what ACL would be interacting with here.

Please test and review.

erikwebb’s picture

Title: Call to a member function condition() on a non-object in constraint_delay.inc in connection with ACL » Delay constraint issues fatal error when account has not yet been created

Status: Needs review » Needs work

The last submitted patch, password_policy-fatal_error_no_account-1539196-1.patch, failed testing.

erikwebb’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, password_policy-fatal_error_no_account-1539196-1.patch, failed testing.

erikwebb’s picture

Status: Fixed » Closed (fixed)

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