In a plain-vanilla, brand new install of D7, if you try to create articles at admin/config/development/generate/content, you get a fatal:

Fatal error: Cannot access empty property in .../modules/field/field.attach.inc on line 201 

I didn't take the time to completely debug this, but it looks to me like the taxonomy tag field is not being set up correctly.

Workaround: Delete the "tags" field from the article content type.

CommentFileSizeAuthor
#3 devel.taxonomy_failure.patch1.77 KBrfay
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rfay’s picture

Title: devel_generate FATAL creating articles » devel_generate FATAL creating content with taxonomy fields
moshe weitzman’s picture

Priority: Normal » Critical

i'm seeing this too. Would love some help fixing it. I vaguely recall that generate doesn't try to populate tag taxo fields, only standard taxo fields.

A diffferent workaround is to just create Page nodes with --types=page.

rfay’s picture

Status: Active » Needs review
FileSize
1.77 KB

I think this patch will be adequate to fix it.

There were a couple of problems:
- It was looking for just any taxonomy tid, not one that belongs to the correct vocabulary
- When it didn't find a result in the taxonomy_term_data table, it didn't do anything reasonable.

Anyway, hoping it helps.

moshe weitzman’s picture

Status: Needs review » Fixed

committed. thanks.

Status: Fixed » Closed (fixed)

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