Warning: array_combine() [function.array-combine]: Both parameters should have at least 1 element in domain_node_presave() (line 1700 of /home/myoffice/public_html/sites/all/modules/domain/domain.module).

This error appears when I use Devel module to generate new nodes, without checking at least one 'publish to' domain in the domain access options of the Devel 'generate content' page.

CommentFileSizeAuthor
#2 1322652-presave-devel.patch541 bytesagentrickard

Comments

agentrickard’s picture

Title: Warning: array_combine() [function.array-combine]: Both parameters should have at least 1 element in domain_node_presave() » domain_node_presave() error with Devel
Priority: Normal » Minor

Thanks. Having that 'devel' piece of information is critical here.

Please do not use PHP error messages as issue titles.

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new541 bytes

Easy patch for 7.x.3, likely needs backport to 7.x.2 and 6.x.

agentrickard’s picture

The other option, of course, is to make those fields required (as they are on node forms), but sometimes you want to test with those not filled out.

Yuri’s picture

Yup, I confirm that the 1322652-presave-devel.patch works for 7.x.3.
Thanks!

agentrickard’s picture

Status: Needs review » Reviewed & tested by the community

Excellent.

agentrickard’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x.2, 7.x.3, and 6.x.2.

Status: Fixed » Closed (fixed)

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