Closed (fixed)
Project:
Flag Friend
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2012 at 10:37 UTC
Updated:
16 Dec 2014 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sirkitree commentedDo you have flag module installed?
Comment #2
Blue commentedI confirm. This issue is still live!!! I'm unable to uninstall flag friend. I have flag module installed.
FIX : It will work if you uninstall flag friend first, keeping Flag module installed and not disabled!
Comment #3
sirkitree commentedSorry, but I can't seem to replicate this. If someone can give me steps on a fresh install to replicate this I can take a closer look. The function should be available. Here are the steps I've tried so far.
Attempt 1:
Attempt 2:
Attempt 3:
Attempt 4:
If you can give me some solid steps to reproduce this, please re-open.
Comment #4
Blue commentedHello sirkitree,
Problem occurs if you disable both Flag Friend and Flag at the same time. On the UNINSTALL page if you try to uninstall FLAG FRIEND you get that error. This is because Flag module is disabled also.
Here is the FIX : It will work if you uninstall flag friend first, keeping Flag module installed and not disabled!
Comment #5
WriteCo commented#4 solution works, but the uninstall should be more painless than this.
Install Flag and enable everything associated with it. Run update and add some content for good measure. Disable everything associated with Flag. Uninstall everything associated with Flag, except Flag Friend. Only Flag and Flag Friend should be available for uninstall. Uninstall Flag Friend. Problem??? There is for me.
I want to use Flag, but I have to uninstall unnecessary modules for now because something else broke.
Comment #6
sirkitree commentedPatches welcomed.
Comment #7
timwee commentedPDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'fl.fid' in 'field list': SELECT DISTINCT fl.fid AS fid FROM {flag_lists_types} fl LEFT OUTER JOIN {flags} f ON fl.name = f.name; Array ( ) in flag_lists_uninstall() (line 196 of /html/sites/all/modules/flag_lists/flag_lists.install).
This is the error if you wish to uninstall this module. The #4 is not working for me.
Comment #8
Québec commentedHi,
I just dont see Flag Friend under the uninstall tab. I'm using Flag limit (but only in conjunction with Flag).
When trying to enable back FF to uncheck it again hoping it to show in the uninstall tab, I get this message:
DatabaseSchemaObjectExistsException: Table flag_friend already exists. in DatabaseSchema->createTable() (line 657 of /home/hangar217model/public_html/includes/database/schema.inc).
What woul be the way to erase completly FF to start over? Thanks.
Comment #9
divined commentedI have not Flag Friend module installed. All Flag modules are enabled. But have this error;
Fatal error: Call to undefined function flag_get_flag() in [..]/sites/all/modules/flag_friend/flag_friend.install on line 19
Comment #10
socketwench commentedWhile I couldn't reproduce the issue, it made sense to augment the uninstall hook.
Comment #11
andros commentedThis problem still exists in the dev version? Is this module abandoned?
Comment #13
socketwench commentedNo, the module is not abandoned. My time has been limited this year while I write Flag 8.x, and I've only recently had the time to work on Flag Friend.
As for this issue, it only appears when you uninstall flag module first. Like other flag_* modules, flag_friend must be uninstalled before flag module. If flag module is removed first, flag_get_flag() will no longer be available for flag_friend's uninstall function.
I've committed the hardened uninstall function, but please remember the above when uninstalling modules.