On enabling the module or creating a field using the Viewfield Source as the widget:

FieldException: Attempt to create an instance of a field field_rsrvd_prdref_srcview that doesn't exist or is currently inactive. in field_create_instance() (line 453 of C:\htdocs\modules\field\field.crud.inc).

Drupal 7.8, Viewfield Dev.

Comments

chriscalip’s picture

Assigned: Unassigned » chriscalip
chriscalip’s picture

Did a partial look on the situation this module is dependent on the viewfield module; and on its hook_install it instantiate a field_instance of viewfield; the problem is when you enabled both this contrib module and viewfield at the same time.. the process bombs out.

In cases of both modules getting enabled; gotta figure out a way to delay the creation of the field before viewfield comes up and running.

chriscalip’s picture

Status: Active » Needs review

Derek,

Thank you for testing; I believe I have this fixed with this commit:
http://drupalcode.org/project/product_reference_view.git/commit/d6be07f

I also tested on a clean Drupal 7.8, Viewfield Dev. works now.

Kind regards,
Chris Calip

chriscalip’s picture

http://drupalcode.org/project/product_reference_view.git/commit/df2bfed

added additional safety check to not create this modules reserved fields if those reserved fields already exist.

derekw’s picture

No more errors here.

chriscalip’s picture

Status: Needs review » Fixed

Thanks for the feedback. Considered fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

danzVP06’s picture

Issue summary: View changes

Hi, I just used this module and I applied your patch. I'm still getting an error.

FieldException: Attempt to create an instance of a field field_rsrvd_prdref_srcview that doesn't exist or is currently inactive. in field_create_instance() (line 476 of /modules/field/field.crud.inc).