After updating from 7.x-1.4 to 7.x-1.5 I get this error message.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

Please provide more detail.

4kant’s picture

Sorry for the delay.

what is missing in the error-message I wrote is
"... line 396 of .../sites/all/modules/domain_views/domain_views.views.inc" and
"... line 397 of .../sites/all/modules/domain_views/domain_views.views.inc"

i had to comment those two lines out because I could not find "machine_name" in the database´s domain table.

But wait: I just found out that obviously I have to update domain module from 7.x-2 to 7.x-3 because of "new fields in 7.x-3" (line 117 in domain_views.views.inc).

Hope that will do it.

agentrickard’s picture

We should still support 7.x.2, actually. I wasn't aware that the substitutions fire when they are not used.

What were you doing when this happened? Can you export and attach the view?

agentrickard’s picture

I cannot replicate the error.

ZeiP’s picture

Status: Postponed (maintainer needs more info) » Active
FileSize
9.57 KB

I'm getting this error just by viewing a page that has a Views block (export attached):

Notice: Undefined index: machine_name funktiossa domain_views_views_query_substitutions() (rivi 396 tiedostossa /srv/www/drupal7/sites/all/modules/domain_views/domain_views.views.inc).
Notice: Undefined index: machine_name funktiossa domain_views_views_query_substitutions() (rivi 397 tiedostossa /srv/www/drupal7/sites/all/modules/domain_views/domain_views.views.inc).

I'm using Domain Access 7.x-2.18. Let me know if you require any additional information.

agentrickard’s picture

Status: Active » Needs review
FileSize
855 bytes

And a patch.

maxiorel’s picture

Patch #6 has a syntax error. There shouldn't be a => at the end, I think, but

$return['***CURRENT_DOMAIN_MACHINE_NAME***'] = $domain['machine_name'];
$return['***PRIMARY_DOMAIN_MACHINE_NAME***'] = $default['machine_name'];

agentrickard’s picture

yeah. more copy/paste fun.

agentrickard’s picture

Status: Needs review » Fixed

Committed. Thanks.

  3a4f1a0..753b675  7.x-1.x -> 7.x-1.x

Status: Fixed » Closed (fixed)

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