Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While using Feeds and the language patch (#1183440: Multilingual Feeds - Make field import language-aware), I ran into the following error on import:
Notice: Undefined property: stdClass::$title in title_entity_update() (line 133 of /path/to/drupal/sites/all/modules/title/title.module)
I was in a situation where $entity->field_replacement->{$legacy_field} wasn't set. So it's necessary to check this before doing the comparison.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1362790-undefined-property-2.patch | 852 bytes | amateescu |
#1 | check_if_legacy_field_is_set-1362790-1.patch | 1.21 KB | colan |
Comments
Comment #1
colanComment #2
amateescu CreditAttribution: amateescu commentedI also encountered this issue on a drush site-install. Cleaned up the patch and I think it's good to go now.
Comment #3
plachCommitted, thanks.