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 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).
Comment | File | Size | Author |
---|---|---|---|
#21 | filefield_paths-warning-1714596-21.patch | 1.07 KB | achton |
Comments
Comment #1
jentzheng CreditAttribution: jentzheng commentedSame 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.
Comment #2
design.er CreditAttribution: design.er commentedI can confirm this issue on a clean Drupal 7.15 installation while saving new content with file/image field.
Comment #3
Goekmen CreditAttribution: Goekmen commentedSame here Drupal 7.15 and File(field) Paths 7.x-1.0-beta3
Comment #4
otouma CreditAttribution: otouma commentedSame here, using Drupal 7.15 and File(field) Paths 7.x-1.0-beta3 installed.
Comment #5
suaieru777 CreditAttribution: suaieru777 commentedSame here. Drupal 7.15 and File(field) Paths 7.x-1.0-beta3.
Comment #6
suaieru777 CreditAttribution: suaieru777 commentedComment #7
x_v CreditAttribution: x_v commentedsubscribing. I have the same issue.
Comment #8
cossimo CreditAttribution: cossimo commentedDitto, except I get this error when translating nodes (using entity translation).
Comment #9
luisasasi CreditAttribution: luisasasi commentedSame here, using Drupal 7.15 and File(field) Paths 7.x-1.0-beta3+3-dev installed.
Comment #10
Deciphered CreditAttribution: Deciphered commentedIssue 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.
Comment #11
Deciphered CreditAttribution: Deciphered commentedFixed and committed to 7.x-1.x: http://drupalcode.org/project/filefield_paths.git/blobdiff_plain/5dd7235...
Comment #12
vjecnomlad CreditAttribution: vjecnomlad commentedI'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).
Comment #13
Fidelix CreditAttribution: Fidelix commentedvjecnomlad, 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.
Comment #14
afoster CreditAttribution: afoster commentedUpdated 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.
Comment #15
carajito CreditAttribution: carajito commentedThe same
Comment #16
Deciphered CreditAttribution: Deciphered commentedHi 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.
Comment #18
Ralf Eisler CreditAttribution: Ralf Eisler commentedI 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.
Comment #19
Deciphered CreditAttribution: Deciphered commentedPlease refer to the linked issue in #16, this is a Drupal core issue, not File Field Paths issue.
Comment #20
katannshaw CreditAttribution: katannshaw commentedJust 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?
Comment #21
achtonHere 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 :-)
Comment #22
Deciphered CreditAttribution: Deciphered commented@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:
Comment #23
achtonI 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 ;)
Comment #24
blogers CreditAttribution: blogers commentedSame problem here, using Drupal 7.15
http://puu.sh/gcAe1/68063a93d9.png