Trying to generate content on site running domain access with Drush results in PHP warnings, also results in empty nodes being generated.

$ drush generate-content 5
array_filter() expects parameter 1 to be array, null given domain.module:1489                 [warning]
array_filter() expects parameter 1 to be array, null given domain.module:1489                 [warning]
array_filter() expects parameter 1 to be array, null given domain.module:1489                 [warning]
array_filter() expects parameter 1 to be array, null given domain.module:1489                 [warning]
array_filter() expects parameter 1 to be array, null given domain.module:1489                 [warning]

When i tried Devel generate from UI, had no such problems.

CommentFileSizeAuthor
#1 1352492-domain-devel-drush.patch438 bytesagentrickard

Comments

agentrickard’s picture

Version: 7.x-2.9 » 7.x-2.x-dev
Priority: Major » Normal
Status: Active » Needs review
StatusFileSize
new438 bytes

Not major. Please update to 7.x-2.16.

Here's a patch.

Note that domain settings will not be added if generating content via drush.

agentrickard’s picture

Status: Needs review » Patch (to be ported)

Applied to 7.x.3

agentrickard’s picture

Status: Patch (to be ported) » Fixed

Committed to 7.x.2.

Ravi.J’s picture

Great, will test this and comeback to you.
Thanks
Ravi

agentrickard’s picture

It's too late to test it. You have to test patches when they are "needs review".

I already committed this one because you ignored it for two weeks.

Ravi.J’s picture

Sorry for delay in reviewing. Glad that fix has been committed.

agentrickard’s picture

It's a common problem. But it does delay releases.

Status: Fixed » Closed (fixed)

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