Hi,
I am using field collection with entity translation image field and I am getting below error:
Notice: Undefined property: stdClass::$fid in file_usage_add() (line 689 of public_html/includes/file.inc).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'fid' cannot be null: INSERT INTO {file_usage} (fid, module, type, id, count) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => file [:db_insert_placeholder_2] => field_collection_item [:db_insert_placeholder_3] => 70 [:db_insert_placeholder_4] => 1 ) in file_usage_add() (line 696 of
After deleting error node if i am creating a new node it gives error sometimes.
Please let me know why this happening.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Undefined_property_stdClass_fid-2772663-2.patch | 891 bytes | Patil_kunal27 |
| Error on creating node with image field collection.png | 46.73 KB | sachintyagi99 |
Comments
Comment #2
Patil_kunal27 commentedAdded extra validation for above issue.
Comment #3
Patil_kunal27 commentedComment #4
stefan.r commentedIs this the same issue as #1627860: Unable to add new content with empty upgraded image/file field?
Comment #5
Patil_kunal27 commentedHI sachintyagi99
IS your problem solved ?
Comment #6
sachintyagi99 commentedHi Patil,
Yes, Problem regarding file upload has been resolved.
Thanks
Comment #7
sachintyagi99 commented