Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: Shobhit@Rhaa commentedi have found that its a bug found at
function newsletter_taxonomy_vocabulary_insert
in newsletter.module.While creating the "field instance" they are using different "field_name" values in
field_create_field
andfield_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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: vaibhav571 as a volunteer commentedThis issue can be fixed by applying this patch.
Comment #10
kienan91 CreditAttribution: 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 CreditAttribution: catFighter as a volunteer commented#9 working very good for me!
Comment #12
peraltamori CreditAttribution: peraltamori as a volunteer and commented#9 working