Problem/Motivation
When running cron through a drush command, I get the following error:
Error: Call to a member function id() on null in domain_entity_entity_access() (line 501 of /var/www/html/web/modules/contrib/domain_entity/domain_entity.module)
This is because there is no active domain to resolve.
Proposed resolution
Maybe make an exception to skip the access check when this is invoked by a drush command?
Could be something along the lines of what is proposed in this issue.
The linked issue was also something I faced and was resolved by implementing the patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | domain_entity-cli-check-3266069-2.patch | 586 bytes | lroels |
Issue fork domain_entity-3266069
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3266069-cron-cannot-be
changes, plain diff MR !6
Comments
Comment #2
lroelsThis patch could be a start based on the linked issue above.
Problem seems to be resolved after this patch is applied.
Comment #5
delta commentedlgtm
Comment #7
delta commented