Nothing fancy, Drupal 7.15 installed, drupal commerce and commerce coupon (plus dependencies)
Create my first coupon type and it crashed right here. This is the error:

FieldException: Attempt to create a field of unknown type "number_integer". in field_create_field() (line 110 of /var/www/sites/drupal7/modules/field/

it's related to commerce_coupon_number_of_uses

I've tried with Drupal 7.13 also and have the same error.

Of course the whole site is down because there is half the entity created in the database.
When refreshing the page I have this error:

Recoverable fatal error: Argument 2 passed to entity_views_field_definition() must be an array, null given, called in /var/www/sites/default/modules/contrib/entity/views/ on line 152 and defined in entity_views_field_definition() (line 175 of /var/www/sites/default/modules/contrib/entity/views/

#3 1787434-fix-depencies-3.patch369 bytesELC
Members fund testing for the Drupal project. Drupal Association Learn more


maxime_sbk’s picture

This is because there is a missing dependency with the module Number

Could someone patch this ?

pcambra’s picture

Priority: Critical » Normal
Status: Needs review » Postponed (maintainer needs more info)

Do you have "number" module installed? that comes with core.

ELC’s picture

Status: Postponed (maintainer needs more info) » Needs review
369 bytes

Experienced the same problem. Site database was fouled up so badly I had to start from scratch!

Module needs to include Number module as a dependency as it can be installed without it but it seems to be absolutely critical. One line patch attached.

pcambra’s picture

Version: 7.x-1.0-beta6 » 7.x-1.x-dev
Status: Needs review » Fixed

Thanks for the catch and the patch!


Status: Fixed » Closed (fixed)

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