Add Number module as dependency to avoid: Attempt to create a field of unknown type number_integer

Created on 28 May 2017, about 7 years ago
Updated 9 June 2023, about 1 year ago

When enabling the three modules contained in this dev version using drush:

drush en simpleads simpleads_filter simpleads_campaigns

The following error is displayed:

exception 'FieldException' with message 'Attempt to create a field of unknown type <em class="placeholder">number_integer</em>.' in
/var/www/mywebsite.local/modules/field/field.crud.inc:110
Stack trace:
#0
/var/www/mywebsite.local/sites/all/modules/contrib/simpleads/modules/simpleads_campaigns/simpleads_campaigns.install(117):
field_create_field(Array)
#1 [internal function]: simpleads_campaigns_install()
#2 /var/www/mywebsite.local/includes/module.inc(926): call_user_func_array('simpleads_campa...',
Array)
#3 /var/www/mywebsite.local/includes/module.inc(494): module_invoke('simpleads_campa...', 'install')
#4 /path-to-drush/.composer/vendor/drush/drush/commands/core/drupal/environment_7.inc(143):
module_enable(Array)
#5 /path-to-drush/.composer/vendor/drush/drush/commands/pm/pm.drush.inc(1122): drush_module_enable(Array)
#6 [internal function]: drush_pm_enable('simpleads_campa...')
#7 /path-to-drush/.composer/vendor/drush/drush/includes/command.inc(361):
call_user_func_array('drush_pm_enable', Array)
#8 /path-to-drush/.composer/vendor/drush/drush/includes/command.inc(212): _drush_invoke_hooks(Array, Array)
#9 [internal function]: drush_command('simpleads_campa...')
#10 /path-to-drush/.composer/vendor/drush/drush/includes/command.inc(180):
call_user_func_array('drush_command', Array)
#11 /path-to-drush/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(64): drush_dispatch(Array)
#12 /path-to-drush/.composer/vendor/drush/drush/drush.php(70):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#13 /path-to-drush/.composer/vendor/drush/drush/drush.php(11): drush_main()
#14 {main}

Everything goes well if the Number module is enabled before hand.

πŸ› Bug report
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain estepix

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024