FieldException: Attempt to create a field of unknown type commerce_product_reference. in field_create_field() (line 106 of /var/www/temp_killme/modules/field/field.crud.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aaronott’s picture

Title: Error on fresh install - FieldException » Error on fresh install - FieldException commerce_product_reference
Status: Active » Needs review
FileSize
455 bytes

Subscription requires Product Reference. added this as a dependency

rupertj’s picture

Status: Needs review » Closed (fixed)

Thanks! Committed.

aristeides’s picture

Status: Closed (fixed) » Needs work

All the modules I have are the latest dev version and on enabling this module I get this error too:

Error message
FieldException: Attempt to create a field of unknown type <em class="placeholder">rolereference</em>. in field_create_field() (line 106 of /modules/field/field.crud.inc).

I checked the commerce_subscription.info file and the dependency is there as expected.

rupertj’s picture

Status: Needs work » Postponed (maintainer needs more info)

I just tried a fresh install of Drupal 7.7, latest commerce and all other dependencies, and didn't get this error? Have you definitely got rolereference there? If it's not missing, which versions of the dependencies are you running?

joelpittet’s picture

I noticed if I had rolereference installed first then installed subscriptions I didn't get the FieldException. Can you weight the dependencies to load first or something along those lines?

ntigh52’s picture

When I install it I get:

FieldException: Attempt to create a field of unknown type <em class="placeholder">list_boolean</em>. ב-field_create_field() (שורה 106 מ-C:\wamp\www\mysite\modules\field\field.crud.inc).

Whats wrong?

nquocbao’s picture

I also had this problem. Latest dev-version of commerce_subscription and got this error:

FieldException: Attempt to create a field of unknown type rolereference. in field_create_field() (line 106 of C:\Projects\********\*******\modules\field\field.crud.inc).

Workaround:

* Disable module
* Clear the cache
* Enable the module again

ntigh52’s picture

Hi,
Thanks for the answer,
But, I tried that and nothing happend...
same bug...
there are More suggestions?
Thanks/

jrabeemer’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I installed on MAMP, Commerce Kickstart (D7.12), installed the latest dev of Commerce Paypal WPS, Commerce Subscription, Date and Role Reference.

No errors.

Configuring this beast is a whole other story altogether. :-P

Closing bug. Works as designed, especially after the patch for the dependency was added.

ntigh52’s picture

momendo,
I installed on WAMP, Commerce Kickstart (D7.12), installed the latest dev of Commerce Paypal WPS, Commerce Subscription, Date and Role Reference.
No errors. :-)
Please tell me did you solve this issue?! ( I am stuck here )
Thanks.

NeoID’s picture

The problem is when you don't install the dependencies before activating this module. Even though you get prompted to activate them before the actual module, the activation doesn't happen in the right order or at least fails. Works when first activating all the dependencies and then the subscription module.