I have a custom module in which I create a node programmatically.

When I save a new node using this module I get the following error:

Notice: Undefined variable: lookup in domain_get_node_domains() (line 1648 of sites/all/modules/domain/domain.module).

What could be the cause of this problem?

Note: I don't have domain access on my localhost, and I didn't have any problems with my custom module on the localhost.

Comments

ayesh’s picture

Probably solved in #752570: static variable in domain_get_node_domains

(I'm not the maintainer/author of DA)

ayesh’s picture

- Accidently repost above -

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new627 bytes

This is incidental and will not harm operation. It's an E_ALL notice caused by a bad unset().

Try this.

agentrickard’s picture

StatusFileSize
new668 bytes

Better patch. This should be replaced with a drupal_static.

agentrickard’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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