If I try to remove the Image Gallery module by disabling it, then uninstalling it, my main taxonomy vocabulary is completely deleted. I looked in the database, and I find that the "Categories" vocabulary, which I created, shows 'image_gallery' listed in the 'modules' column, and this cannot be changed from within Drupal it seems. Even if I change the entry to be 'taxonomy' in the modules column, it is still deleted if I try to uninstall it.

In the Image Gallery settings, the entire vocabulary is listed as image galleries as well, before I even add any!

Comments

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

> my main taxonomy vocabulary is completely deleted

Which one? What is 'main'?

Uninstalling IG deletes the connected vocab -- this is by design. Did you rename the vocab and use it for something else?

gregarios’s picture

The vocabulary in the database (with vid=1) may have been created originally when Image was first loaded, before any other vocabularies, but then renamed and reused later for the main content vocabulary on the website. Could you please tell me what parameters, in which tables, need to change in the database to remove it from Image Gallery's control? It looks like I'll have to do it manually at this point.

I changed the "module" column entry in the "vocabulary" table to be "taxonomy" instead of "image_gallery" like it was, but that didn't keep it from being deleted when I tried to uninstall the module.

Basically, just a list of database tables and columns that need to be deleted/changed in the database for removal would help.

gregarios’s picture

Category: bug » support
Priority: Critical » Normal
joachim’s picture

image gallery stores a vid in a variable -- this is the vid for the vocab that gets deleted. You can find it in the install file.
delete this variable with devel module and you should be ok.

gregarios’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok... I think I found it. Thanks. Looking into the Devel module as well... hmmmm. :-)

Status: Fixed » Closed (fixed)

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