Download & Extend

Cannot Uninstall Field Collection Module

Project:Field collection
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:kscheirer
Status:active

Issue Summary

Cannot Uninstall Field Collection Module for the life of me.
I tried deleting the database tables in PHPmyadmin.
Are there any dependencies or other things I can try?

Comments

#1

Same here. I've disabled it, but it doesn't show up on the Uninstall tab like other modules do.

#2

Same here. It's not even possible to disable the module as it is

Required by: Drupal (Fields pending deletion)

But under fields collections it says:

No field collections have been defined yet. To do so attach a field collection field to any entity.

Is it safe to just delete the module from the filesystem?

#3

+1

#4

Version:7.x-1.0-beta4» 7.x-1.x-dev
Component:User interface» Code
Priority:normal» major
Assigned to:Anonymous» kscheirer

Bug confirmed - this seems pretty serious. Steps to reproduce:

  1. Fresh D7 install + field_collection-7.x-1.0-beta5+1-dev enabled
  2. Create a new content type (Article)
  3. Attach a new Field Collection (Events)
  4. Add 2 fields to the collection at /admin/structure/field-collections (Name text field, and Date integer field)
  5. Go to Modules page (/admin/modules), Field Collection checkbox is not enabled meaning the module cannot be disabled
  6. At Content types page (/admin/structure/types) delete new content type (Article)
  7. drush cc all
  8. At the modules page again, Field Collection checkbox is still not enabled meaning the module cannot be disabled

Workaround: the easiest way to uninstall this module

  1. Remove all content types that make use of field collections (cause you are about to uninstall the module).
  2. Disable the module via command line: drush sqlq "update system set status = 0 where type = 'module' and name = 'field_collection'"
  3. Field Collection will now appear on the Uninstall tab (admin/modules/uninstall) and uninstall normally.

#5

+1

#6

To uninstall this module
Go to the module list
In field collection click the link field list
Find your fields listed as field collection and click 'delete instances'
Your module will now say fields pending deletion
Run cron
You can now disable the module then uninstall the normal way through drush or using the interface

#7

+1

nobody click here