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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1053334-notice.patch | 668 bytes | agentrickard |
| #3 | 1053334-notice.patch | 627 bytes | agentrickard |
Comments
Comment #1
ayesh commentedProbably solved in #752570: static variable in domain_get_node_domains
(I'm not the maintainer/author of DA)
Comment #2
ayesh commented- Accidently repost above -
Comment #3
agentrickardThis is incidental and will not harm operation. It's an E_ALL notice caused by a bad unset().
Try this.
Comment #4
agentrickardBetter patch. This should be replaced with a drupal_static.
Comment #5
agentrickard