Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed flashcard on my drupal 7.8 site, and got this error when I enabled it:
FieldException: Attempt to create a field of unknown type flashcard. in field_create_field() (line 106 of /xxx/xxx/public_html/xxx.com/drupal7/modules/field/field.crud.inc).
Comments
Comment #1
tim.plunkettI can look into this, but when writing that code it turns out that the creation of fields upon install can be pretty buggy. Hence the new Field API Helper module: http://drupal.org/project/field_helper
I might have to rewrite this to depend on that.
Comment #2
drupalshrek CreditAttribution: drupalshrek commentedJust installed your flashcard module to take a look, but indeed it still gives the following error:
Comment #3
neeravbm CreditAttribution: neeravbm at Red Crackle commentedHere is a temporary fix when you want to install the Flashcard module. Disable and uninstall the flashcard module if you had enabled it previously. Go to line 474 of modules/field/field.info.inc file. The code looks something like this:
Just when the function starts, insert the following line:
_field_info_collate_types(TRUE);
The eventual code looks like this:
Now enable the module. It will take a while but the flashcard module should have been installed. Now delete the line _field_info_collate_types(TRUE) from the code above.
Neerav.
http://redcrackle.com