I am getting the below error after I created a rule that offset the value of a referenced field. All functionality appears to be working correctly. This error comes up when a new node is created, not when an existing node is updated.

Any idea what could be causing this.

Notice: Undefined property: stdClass::$original in file_field_update() (line 265 of /Applications/MAMP/htdocs/drupal7/modules/file/file.field.inc).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jentzheng’s picture

Same for me, I test on clean latest Drupal7 with only enabled latest File (Field) Paths 7.x-1.0-beta3.

When created a new content with image/file field, then appear the error above.

design.er’s picture

I can confirm this issue on a clean Drupal 7.15 installation while saving new content with file/image field.

Goekmen’s picture

Same here Drupal 7.15 and File(field) Paths 7.x-1.0-beta3

otouma’s picture

Same here, using Drupal 7.15 and File(field) Paths 7.x-1.0-beta3 installed.

suaieru777’s picture

Same here. Drupal 7.15 and File(field) Paths 7.x-1.0-beta3.

suaieru777’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta3
x_v’s picture

subscribing. I have the same issue.

cossimo’s picture

Ditto, except I get this error when translating nodes (using entity translation).

luisasasi’s picture

Same here, using Drupal 7.15 and File(field) Paths 7.x-1.0-beta3+3-dev installed.

Deciphered’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev

Issue confirmed, it looks like the higher powers committed an API change that's causing this issue: #985642: Remove file_attach_load() from file_field_update()

Looking into a fix ASAP.

Deciphered’s picture

Status: Active » Fixed
vjecnomlad’s picture

Status: Fixed » Needs work

I'm still having the same issue. I installed the new dev. Version of File Field Paths, although File Field Path wasn't even installed before. As assumed, the installation didn't solve my problem.

I'm getting the following error when I create a new node with a Corresponding Node Reference field:
Does anyone have an idea what I can do?

Notice: Undefined property: stdClass::$original in file_field_update() (line 265 von /drupal/modules/file/file.field.inc).

Fidelix’s picture

Status: Needs work » Fixed

vjecnomlad, if you were getting this error without the File Field Paths module installed, then this is another issue.
I suggest you to open a new issue on Core for this, or debug it yourself by editing file.field.inc and using a debug_backtrace.

Please, only reopen this issue people that are having this problem explicitly with "File Field Paths", AFTER Deciphered's fix.

afoster’s picture

Updated core to 7.15 & had the same issue on node save. Upgrades File Field Paths to Dev and it's resolved. Thanks for the speed resolution.

carajito’s picture

Status: Fixed » Needs work

The same

Deciphered’s picture

Status: Needs work » Fixed

Hi guys,

This issue is absolutely, unquestionably fixed in the dev release.

If you have re-opened this issue and aren't using the dev release, you are killing kittens. If you can prove unquestionably that the issue still exists with the latest dev, then the kittens may yet have a chance.

If you are having this issue and you haven't even got File (Field) Paths, then you are actually suffering the same issue as File (Field) Paths was which is a 7.15 core issue, which should hopefully be resolved in 7.16: #985642: Remove file_attach_load() from file_field_update()

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Ralf Eisler’s picture

I dont’t know if I can prove it, but I am using the latest dev-release. -- And the error message is still there when I am using entity translation.

Deciphered’s picture

Please refer to the linked issue in #16, this is a Drupal core issue, not File Field Paths issue.

katannshaw’s picture

Just installed the dev release and it fixed this issue for me. Thanks for that. Is there any word on when it will be ported to a stable non-dev version?

achton’s picture

Here is a patch that applies to 7.x-1.0-beta3 for those of us who use Drush Make and try to avoid dev module versions on production sites :-)

Deciphered’s picture

@achton

You could have actually used the URL provided in #11 as a patch in Drush make instead of rolling your own, as you can for any commit on D.o:

project[filefield_paths][patch][] http://drupalcode.org/project/filefield_paths.git/blobdiff_plain/5dd723591cdc72b107da33db6679c0f93d69d4f8..7e844f1:/filefield_paths.module
achton’s picture

I did actually try just that, but the patch from the commit I found doesn't apply to beta3: http://drupalcode.org/project/filefield_paths.git/commit/7e844f1b6e3b8ba...

But I managed to overlook your link in #11, and it does apply correctly. It was the CHANGELOG.txt stuff that failed in the other patch. So thanks for the reminder :-)

And yes, this really is fixed in -dev ;)

blogers’s picture

Issue summary: View changes

Same problem here, using Drupal 7.15

http://puu.sh/gcAe1/68063a93d9.png