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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Shobhit@Rhaa’s picture

i 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 and field_create_instance.

If developers will set the same values for both functions (only for field_name) ...then it will work absolutely fine. :)

maxilein’s picture

FileSize
472 bytes

Patch based on 7.x-1.0-beta10.

ckng’s picture

Assigned: Shobhit@Rhaa » Unassigned
Status: Active » Reviewed & tested by the community

Patch #2 tested working.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: newsletter.module.patch, failed testing.

BR0kEN’s picture

Here 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.

BR0kEN’s picture

Version: 7.x-1.0-beta9 » 7.x-1.0-beta10
Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: newsletter-field-exception-taxonomy-creation-2340511-5.patch, failed testing.

pantasio’s picture

how 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

vaibhav571’s picture

This issue can be fixed by applying this patch.

kienan91’s picture

Great ! #2 Working for me ! I thought this error in Core module taxonomy , this error make me more time ! Thank you !

catFighter’s picture

#9 working very good for me!

peraltamori’s picture