I get this error:
Table 'drupal.flag_content' doesn't exist query: SELECT * FROM flag_content

flag_content is not in the DB

Comments

quicksketch’s picture

Category: bug » support

This bug is not present on a clean install of Flag module. You may have installed the flag_content module previously, which would cause a conflict with flag module. You should visit admin/build/modules, disable Flag, then visit admin/build/modules/uninstall and completely uninstall Flag. Then you can re-enable Flag and its installation will run all over again and create the missing tables.

mdroste’s picture

That's right. I've installed flag_content previously.
But what I don't understand is the fact that this code is in the flag.module

$result = db_query("SELECT * FROM {flag_content} WHERE content_type = '%s' AND content_id = %d AND (uid = %d OR uid = 0)", $content_type, $content_id, $uid);
mdroste’s picture

Ah, I got it. After the clean install the table is there.
Thanks.

quicksketch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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