There is a function with the same name defined twice in the code. It looks like the file password_policy.theme.inc should just be removed. Here is the error I am seeing.

Error: Cannot redeclare theme_password_policy_admin_list() (previously declared in
/drupal/sites/all/modules/contrib/password_policy/password_policy.theme.inc:16) in
/drupal/sites/all/modules/contrib/password_policy/password_policy.admin.inc, line
252
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

leewillis77’s picture

We just received this error, and can confirm that the proposed approach (Removing the password_policy.theme.inc file, and taking it out of the info file) resolved it for us.

Patch attached.

leewillis77’s picture

Status: Active » Needs review
dwalker51’s picture

I renamed the file and the function and tested and this worked for me...removing the file should work just as well

  • Commit d90bd01 on 7.x-1.x authored by leewillis77, committed by erikwebb:
    Issue #2197123 by leewillis77: Duplicate function name...
erikwebb’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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