After installing "Newsletter" module i got below error while creating taxonomy vocabularies :
FieldException: Attempt to create an instance of a field field_test that doesn't exist or is currently inactive. in field_create_instance() (line 474 of C:\wamp\www\xxxxxx.com\modules\field\field.crud.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | newsletter.module.patch | 472 bytes | maxilein |
| #5 | newsletter-field-exception-taxonomy-creation-2340511-5.patch | 1002 bytes | br0ken |
| #9 | newsletter-field-exception-taxonomy-creation-2340511-9.patch | 490 bytes | vaibhav571 |
Comments
Comment #1
Shobhit@Rhaa commentedi have found that its a bug found at
function newsletter_taxonomy_vocabulary_insertin newsletter.module.While creating the "field instance" they are using different "field_name" values in
field_create_fieldandfield_create_instance.If developers will set the same values for both functions (only for field_name) ...then it will work absolutely fine. :)
Comment #2
maxilein commentedPatch based on 7.x-1.0-beta10.
Comment #3
ckngPatch #2 tested working.
Comment #5
br0kenHere is my working patch for the "7.x-1.0-beta10" version. Currently, in a branch 7.x-2.x this issue has been fixed.
Comment #6
br0kenComment #8
pantasio commentedhow to fix:
- location sites/all/modules/contrib/newsletter/newsletter.module
- search and commend
'field_name' => 'field_' . $field_name,- replace
'field_name' => 'field_' . $vocabulary->machine_name,I fix it manual by sublimetext bc I work in windows.
I read in patch no5 newsletter-field-exception-taxonomy-creation-2340511-5.patch
more info:
Drupal core 7.39
Newsletter 7.x-1.0-beta10
thank you
Comment #9
vaibhav571 commentedThis issue can be fixed by applying this patch.
Comment #10
kienan91 commentedGreat ! #2 Working for me ! I thought this error in Core module taxonomy , this error make me more time ! Thank you !
Comment #11
catFighter commented#9 working very good for me!
Comment #12
peraltamori commented#9 working