I enabled the module and saw the following errors in my admin:
Warning: reset() expects parameter 1 to be array, null given in domain_entity_field_widget_form() (line 542 of /drupal/sites/all/modules/contrib/domain_entity/domain_entity.module).
Notice: Use of undefined constant DOMAIN_ALL - assumed 'DOMAIN_ALL' in domain_entity_field_widget_form() (line 543 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.module).
Warning: in_array() expects parameter 2 to be array, null given in domain_entity_field_widget_form() (line 543 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.module).
Notice: Use of undefined constant DOMAIN_ACTIVE - assumed 'DOMAIN_ACTIVE' in domain_entity_field_widget_form() (line 546 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.module).
Warning: in_array() expects parameter 2 to be array, null given in domain_entity_field_widget_form() (line 546 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.module).
Warning: Invalid argument supplied for foreach() in domain_entity_field_widget_form() (line 550 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.module).
And...
Notice: Use of undefined constant DOMAIN_ACTIVE - assumed 'DOMAIN_ACTIVE' in domain_entity_ui() (line 52 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.admin.inc).
Notice: Use of undefined constant DOMAIN_ALL - assumed 'DOMAIN_ALL' in domain_entity_ui() (line 52 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.admin.inc).
Notice: Use of undefined constant DOMAIN_ACTIVE - assumed 'DOMAIN_ACTIVE' in domain_entity_ui() (line 93 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.admin.inc).
Notice: Use of undefined constant DOMAIN_ACTIVE - assumed 'DOMAIN_ACTIVE' in domain_entity_ui() (line 93 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.admin.inc).
Notice: Use of undefined constant DOMAIN_ACTIVE - assumed 'DOMAIN_ACTIVE' in domain_entity_ui() (line 93 of /drupal/code/sites/all/modules/contrib/domain_entity/domain_entity.admin.inc). [REPEATS per Domain entry, I believe]
Granted, I did not follow the setup steps exactly so maybe this is just a case where we'd need to add some conditionals/checks to warn users. What I did was...
1. Enabled module.
2. Added "domain" field to a Taxonomy vocab. (without configuring '/admin/structure/domain/entities' first)
3. Pause for river of errors.
Comments
Comment #2
bohartD7 reached its EOL back in January 2025, and there is no active release for D7 for this module.
Neither development nor support is planned for D7.
All D7-related issues (especially those with ~10 years of inactivity) are marked as outdated in a bunch.
If/once the issue still arises in D11+ versions, please create a follow-up issue.
Thanks!