Drupal reports an "Unknown column" error when the module tries to remove the sharedemail_ prefix from the email address, and it fails to correct the email address.

The cause is in sharedemail.module at line 105:

db_query("UPDATE {users} SET {mail} = '%s' WHERE uid = '%d'", $realmail, $user->uid);

To fix the bug, remove the brackets around the column name:

db_query("UPDATE {users} SET mail = '%s' WHERE uid = '%d'", $realmail, $user->uid);

Comments

aufumy’s picture

Status: Active » Fixed

Fixed in DRUPAL-6--1 branch, thanks wesayso.

Audrey

Status: Fixed » Closed (fixed)

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