Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
FieldException: Attempt to create a field of unknown type inline_conditions. in field_create_field() (line 110 of
FieldException: Attempt to create a field of unknown type inline_conditions. in field_create_field() (line 110 of
Comments
Comment #1
jkuma CreditAttribution: jkuma commentedHi yktdan,
Thank you to report me this bug. May you give me more informations about your Drupal instance ?
Thanks in advance,
Jonathan
Comment #2
dimitriseng CreditAttribution: dimitriseng commentedI get the same error on install. Drupal 7.19 with commerce 7.x-1.7, Rules 7.x-2.3 and lots of other modules, no commerce kickstart. However, module still shows as enabled so not sure of any issues.
Comment #3
jkuma CreditAttribution: jkuma commentedComment #4
jkuma CreditAttribution: jkuma commentedSo, I've setup a drupal 7.19 instance with commerce vanilla and rules 2.3. I tried to enable commerce_discount and I can't reproduce this error. Same with just inline_conditions.
May you send me a .txt file with the complete list of your module.
Comment #5
ron_s CreditAttribution: ron_s commentedI'm receiving the same error:
FieldException: Attempt to create a field of unknown type <em class="placeholder">inline_conditions</em>. in field_create_field() (line 110 of /home/www/public_html/modules/field/field.crud.inc).
This is with Drupal 7.22, Commerce 7.x-1.7, and Rules 7.x-2.3. I think the issue is the hook_field_schema is being used to check "if ($field['type'] == 'inline_conditions')" when it doesn't exist.
Also to what table are you attempting to add the columns "condition_name" and "condition_settings"? There doesn't seem to be any hook_schema in the install file, so I'm assuming it is an existing table?
Comment #6
jkuma CreditAttribution: jkuma commentedInline_conditions is a field type, that's mean there are no reasons to create a database for it. Field API already takes care about it. hook_field_schema defines the further columns require by this field type.
Guys, Are you using commerce_discount module ? Do you have a fresh install of Drupal or are you trying to install inline_conditions on an existing instance ?
Comment #7
dimitriseng CreditAttribution: dimitriseng commentedI am installing it on an existing instance and at the moment only because commerce_discount 7.x-1.0-alpha2 requires it.
Comment #8
yktdan CreditAttribution: yktdan commentedYes, commerce_discount module, existing test system in the process of being configured.
Comment #9
ron_s CreditAttribution: ron_s commentedYes, we are using the commerce_discount module. We previously never had the Inline Conditions module installed. However the most recent update of commerce_discount (7.x-1.0-alpha2) now has a dependency with inline_conditions, which is why we installed it.
We had been using commerce_discount 7.x-1.0-alpha1+13-dev without issue.
Comment #10
jkuma CreditAttribution: jkuma commentedI found your issue guys, it's during the update of commerce_discount (alpha1 => alpha2), you got an error when enabling inline_conditions module.
Comment #11
jkuma CreditAttribution: jkuma commentedOk, what you have to do is:
This way, it should work. Let me know if it's working for you.
Comment #12
jkuma CreditAttribution: jkuma commentedOK guys, we have submitted a patch to resolve that issue #2035437: Attempt to create a field of unknown type inline conditions. Please, keep me in touch if it's working for you !
Comment #13
jkuma CreditAttribution: jkuma commentedSince I didn't receive replies from you guys, I've decided to switch the status to fixed knowing that patch #2035437: Attempt to create a field of unknown type inline conditions solves the issue according to me.