Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | devel.taxonomy_failure.patch | 1.77 KB | rfay |
Comments
Comment #1
rfayComment #2
moshe weitzman CreditAttribution: moshe weitzman commentedi'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.
Comment #3
rfayI 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.
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedcommitted. thanks.