I have an installation profile which sets up some demonstration content on a collection of domain access sites. During the installation I'm getting hundreds of watchdog notices with the following messages...

"Notice: Undefined index: domain_id in domain_node_grants() (line 1980 of /var/www/mer003/site/sites/all/modules/contrib/domain/domain.module)."

"Notice: Undefined index: domain_id in domain_get_node_defaults() (line 4177 of /var/www/mer003/site/sites/all/modules/contrib/domain/domain.module)."

I'm running this installation profile through "drush si" so it stands to reason that domain wouldn't know what the current domain is, but there should probably be a check that index domain_id is set before using it.

CommentFileSizeAuthor
#3 2170915-bad-index.patch526 bytesagentrickard
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

What happens if you pass a uri parameter with drush si? That should set the default domain and eliminate this error.

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)
agentrickard’s picture

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

Simple patch. Waiting for test results.

agentrickard’s picture

Status: Needs review » Fixed

Committed.

   39d6cb3..82a4390  7.x-3.x -> 7.x-3.x

Status: Fixed » Closed (fixed)

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