Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce_subscription-fieldException-1206966-1.patch | 455 bytes | aaronott |
Comments
Comment #1
aaronott CreditAttribution: aaronott commentedSubscription requires Product Reference. added this as a dependency
Comment #2
rupertj CreditAttribution: rupertj commentedThanks! Committed.
Comment #3
aristeides CreditAttribution: aristeides commentedAll the modules I have are the latest dev version and on enabling this module I get this error too:
I checked the commerce_subscription.info file and the dependency is there as expected.
Comment #4
rupertj CreditAttribution: rupertj commentedI 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?
Comment #5
joelpittetI 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?
Comment #6
ntigh52 CreditAttribution: ntigh52 commentedWhen I install it I get:
Whats wrong?
Comment #7
nquocbao CreditAttribution: nquocbao commentedI also had this problem. Latest dev-version of commerce_subscription and got this error:
Workaround:
* Disable module
* Clear the cache
* Enable the module again
Comment #8
ntigh52 CreditAttribution: ntigh52 commentedHi,
Thanks for the answer,
But, I tried that and nothing happend...
same bug...
there are More suggestions?
Thanks/
Comment #9
jrabeemer CreditAttribution: jrabeemer commentedI 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.
Comment #10
ntigh52 CreditAttribution: ntigh52 commentedmomendo,
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.
Comment #11
NeoID CreditAttribution: NeoID commentedThe 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.