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.
I'm getting following issue when I save a node with a Corresponding Node reference field.
I already tried the normal and dev. version.. I'm using the newest drupal ver. 7.15
Notice: Undefined property: stdClass::$original in file_field_update() (line 265 in /drupal/modules/file/file.field.inc).
Comments
Comment #1
dzah CreditAttribution: dzah commentedI am having the same "Notice: Undefined property: stdClass::$original in file_field_update() (line 265 of Z:\home\SITENAME\www\modules\file\file.field.inc)." message. However, I am using not the "Corresponding node references" but rather "Entity Reference".
Comment #2
mgiffordPretty sure this is a duplicate of - #1714596: Undefined property: stdClass::$original in file_field_update() - which has actually been fixed in the repository.
Comment #3
james.williams CreditAttribution: james.williams commentedThis ticket isn't a duplicate as such, but the solution found in #1714596: Undefined property: stdClass::$original in file_field_update() for the File field paths module is also needed in CNR.
Comment #4
Orkut Murat YılmazThe final url of that patch is here.
Comment #5
ryounes CreditAttribution: ryounes commentedI'm getting this error when I save a node that has a node reference to a node of a content type with an image field. In file_field_update, $entity is the second node, not the node being saved. Does CNR update all nodes referred to by a node being updated? That seems like a design flaw.
Comment #6
liza CreditAttribution: liza commentedFYI i got this error message after having problems with CER. am on D7.19 and the aforementioned patch, which goes back to D7.15, wasnt included in D7.19.
Comment #7
fledev.com CreditAttribution: fledev.com commentedThis issue appears also without the mentioned module in Drupal 7.21.
http://drupal.org/files/core-7.15-remove-file-attach-load-985642-41.patch
...
@modules/file/file.field.inc line 264
Comment #8
johnvIt seems this is fixed in core per D7.22: #985642-80: Remove file_attach_load() from file_field_update()
Comment #9
DamienMcKennaClosing this to 'works as designed' because of #985642: Remove file_attach_load() from file_field_update().