I am running Devel 7.x-1.x-dev with Drush 7.0-dev.
Devel generate runs normally using Devel UI, while it doesn't generate any title using drush.
The problem is

// Line 674
$type = node_type_get_type($node); // this return FALSE with drush

// Line 678
if ($type->has_title) { // this is always FALSE, so the title is not generated

I have created a patch to fix the problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vinmassaro’s picture

Status: Active » Reviewed & tested by the community

Ran into this issue today. This patch fixes the blank title problem when generating content from Drush. Thanks.

vbouchet’s picture

This patch is doing the job. A content generated from drush has a title now. Thanks.

Pere Orga’s picture

Status: Reviewed & tested by the community » Needs work

The patch could be shorter:

if (!$type || $type->has_title) {
...
vbouchet’s picture

Status: Needs work » Needs review
FileSize
571 bytes

You are right. When I had a look, I just checked there is some logic around title but nothing more. This is the patch with the short syntax.

moshe weitzman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Or pass-in --types=article another lazy solution.

Vincenzo’s picture

So, the patch was committed by moshe on September 2014, but the latest stable release for Devel 7.x is from May 2014, which means, nearly 3 years later, this issue is still "open" in the stable release of Devel. Seriously?

Vincenzo’s picture

@guneysus Your workaround doesn't work.