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.
In uc_affiliate2_user_delete(), please, change
db_update('uc_affiliate2')
->condition('aid', $account->uid)
->fields(array('aid'), $parent)
->execute();
to
db_update('uc_affiliate2_users')
->condition('aid', $account->uid)
->fields(array('aid' => $parent))
->execute();
Comment | File | Size | Author |
---|---|---|---|
#5 | 2072655-fix_user_delete-5.patch | 545 bytes | retiredpro |
#4 | uc_affiliate2-fix_user_delete_bug-2072655-4.patch | 772 bytes | citricguy |
Comments
Comment #0.0
djg_tram CreditAttribution: djg_tram commentedTypography
Comment #1
marty.true CreditAttribution: marty.true commentedDidn't work for me.
Comment #2
christofa CreditAttribution: christofa commentedWorked for me! Thanks.
Comment #3
HoangD CreditAttribution: HoangD commentedWorked for me
Comment #4
citricguy CreditAttribution: citricguy commentedSame issue here.
It seems that the function is trying update a table that does not exist (uc_affiliate2).
Both 7-1.3 and 7-dev seem to have this issue.
I can confirm that @djg_tram's solution works. I've attached a patch using his code.
Comment #5
retiredpro CreditAttribution: retiredpro commentedThanks. djg_tram's solution worked for me too. Attached a patch that's relative to the module.