Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
After upgrading Drupal 7 core to 7.56, the following error message displays when we edit our current password policy. We were able to update the password policy before but not anymore. It is completely block us from editing now.
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'constraints' in 'field list':
The line number generating error is coming from is
password_policy_save_policy() (line 1441 of sites/all/modules/contrib/password_policy/password_policy.module)
Comments
Comment #2
AohRveTPV CreditAttribution: AohRveTPV commentedHello. Could you please check the schema version for Password Policy as follows and report back?
I can provide a PHP snippet to do it if you don't have direct database access.
Comment #3
AohRveTPV CreditAttribution: AohRveTPV commentedThis may be the same as #2876691: Undefined index: contraints error. I hope you will report back the schema version so I can try to get to the bottom of it.
Comment #4
drup16 CreditAttribution: drup16 commented@AohRveTPV,
That did the trick. It was missing the hook updates which have now been applied and I am getting 7108. Thank you.
Comment #5
AohRveTPV CreditAttribution: AohRveTPV commentedAh, so in this case maybe the problem was just not having yet run the database updates. Glad it's working for you now.