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

dzah’s picture

I 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".

mgifford’s picture

Status: Active » Closed (duplicate)

Pretty sure this is a duplicate of - #1714596: Undefined property: stdClass::$original in file_field_update() - which has actually been fixed in the repository.

james.williams’s picture

Status: Closed (duplicate) » Active

This 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.

Orkut Murat Yılmaz’s picture

The final url of that patch is here.

ryounes’s picture

I'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.

liza’s picture

FYI 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.

fledev.com’s picture

This 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

  // Load the original entity, if $entity->original is not already set.
  $entity->original = (empty($entity->original)) ? $entity->original : entity_load_unchanged($entity_type, $id);
johnv’s picture

Status: Active » Needs review

It seems this is fixed in core per D7.22: #985642-80: Remove file_attach_load() from file_field_update()

DamienMcKenna’s picture

Issue summary: View changes
Status: Needs review » Closed (works as designed)

Closing this to 'works as designed' because of #985642: Remove file_attach_load() from file_field_update().