Closed (fixed)
Project:
Spam
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2008 at 18:15 UTC
Updated:
1 Jul 2009 at 16:50 UTC
Jump to comment: Most recent file
In some initial testing of the 6.x branch of the spam module, I enabled all modules and then on the admin pages I saw the following error:
user warning: Table 'spam68.profile_values' doesn't exist query: SELECT fid, value FROM profile_values WHERE uid = 3 in /var/www/spam68/sites/default/modules/spam/modules/spam_user.inc on line 228.
I've not yet looked into the code to debug.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 351138-profile-table-doesnt-exist.patch | 983 bytes | coltrane |
| #1 | diff.patch | 633 bytes | coreyp_1 |
Comments
Comment #1
coreyp_1 commentedIt looks like the module assumes that the profile module is enabled.
Here's a quick and dirty solution.
Comment #2
TBarregren commentedI've reviewed and tested the patch. It looks correct and works as expected.
Comment #3
coltraneProfile serializes arrays, such as in the case of profile date fields. spam_user_profile_update() doesn't handle serialized data just putting whatever is returned into the user object. spam_user_profile_update() should just use profile_load_profile instead.
Comment #4
gnassar commented#3 committed. Thank you.