Although I've disabled and removed any module that required Entity Reference, I still cannot disable and remove entity reference, as it has attached itself to the comment fields on every content type in my drupal test site.

Any ideas?

Comments

damien tournoud’s picture

Category: bug » support

Entity Reference doesn't attach itself anywhere. It is just a module providing a field type. To be able to uninstall it, you need to manually go delete all the fields that are using this field type.

You can go to admin/reports/fields to see a list of fields in your installation.

luco’s picture

Category: support » bug

wrong. I checked both admin/reports/fields and admin/reports/views-fields: there's no Entity Reference field in either of them.

also it's gone from every admin/structure/types/manage/ [content-type] /fields page.

however, recreating the field, adding it to some content type and then deleting it solved for me.

damien tournoud’s picture

Category: bug » support
Status: Active » Closed (won't fix)

Entity Reference doesn't do anything by itself about that. Some fields will stay until the next cron run, because of the way fields are removed by Drupal, but there is nothing we can do about that.

luco’s picture

hmmm, cron run... gotta remember that. thanks.

Elleon’s picture

I was stuck with this problem too, tried all of the steps above to no avail. Reloaded the backup of the database, removed the content in the fields based on entity reference by editing each node individually, then deleted the field from the content types. Was then able to disable the Entity Reference module and didn't even need to run cron this time.

florian.bacle’s picture

Issue summary: View changes

Run cron worked for me