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.
Doing programmatic node_save() calls (i.e., when migrating) generates notices from auto_nodetitle:
Undefined property: stdClass::$nid File /var/www/xmike/XPortal/sites/all/modules/contrib/auto_nodetitle/auto_nodetitle.module, line 81(file: /var/www/xmike/XPortal/sites/all/modules/contrib/auto_nodetitle/auto_nodetitle.module, line 81)
Attached patch fixes this.
Comment | File | Size | Author |
---|---|---|---|
auto_nodetitle_notice.patch | 504 bytes | mikeryan |
Comments
Comment #1
blainelang CreditAttribution: blainelang commentedAlso seeing this error but I was able to set the title property for the content type to Disabled (admin/structure/content_type) and auto_nodetitle then was not triggered and I could set the node title manually in code.
Comment #2
marvil07 CreditAttribution: marvil07 commented@mikeryan: Thanks for the patch!
It works as expected.
Comment #3
joelpittetJust bumping because it's been RTBC for some time now
Comment #4
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedThe patch applies successfully and worked as designed.
Comment #5
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedAlready fixed in latest version of the module.