Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#1 | remove-old-theme-file-2197123.1.diff | 1.93 KB | leewillis77 |
Comments
Comment #1
leewillis77 CreditAttribution: leewillis77 commentedWe 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.
Comment #2
leewillis77 CreditAttribution: leewillis77 commentedComment #3
dwalker51 CreditAttribution: dwalker51 commentedI renamed the file and the function and tested and this worked for me...removing the file should work just as well
Comment #5
erikwebb CreditAttribution: erikwebb commented