Skip to main content
Jan
12
2011

Drupal 7 notes - dealing with "ghost fields"

Came across a problem someone else on Drupal dubbed "ghost field" in one of the issue queues.  My issue with ghost fields came about while setting up Profile2 to use in my profile (strangely), but the problem happens in other modules as well.

The problem

  1. create a profile type (or modify the main one)
  2. add a field
  3. delete the field (I don't recall seeing any difference between saving data in the field or not)
  4. try to add a new field with the same name, get an error saying the field name is already in use, but it doesn't appear in the "Add existing field" list

The solution