I'm trying to install the flag module, and when I do I get the following error:

You are trying to install the Flag module. However, you have the "Flag content" module installed, and these two modules aren't compatible (because they happen to use a database table by the same name). To install the Flag module, you'll first have to disable and then uninstall the "Flag content" module.

I inherited this site from a previous maintainer, so I'm not sure if the "Flag Content" module was installed at some point. However, it's definitely not installed now and the folder is not present in the modules directory.

Is there some table I have to drop to get this to install?

Comments

quicksketch’s picture

Category: bug » support

What's probably happened on your site is that Flag Content was installed at some point, even though it's no longer in the modules directory. To properly uninstall a module, it should be disabled from admin/build/modules, then completely uninstalled from admin/build/modules/uninstall. I'm guessing that the module was just removed from the modules directory without uninstalling.

So to properly clean up after flag_content, you should delete the "flag_content" database table, and remove the "flag_content" row from the "system" database table. There are probably a few variables left over in the "variables" table too, such as:
- flag_content_email
- flag_content_user
- flag_content_comment
- flag_content_node_type_*

Basically just have a look in the variables table and remove any rows that begin with "flag_content_".

Anyway, the only *real* conflict is the flag_content database table, if you delete that then you will be able to install flag.

hankp98072-’s picture

Thank you very much. That worked perfectly.

quicksketch’s picture

Status: Active » Fixed

Super, thanks for the followup.

Status: Fixed » Closed (fixed)

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