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.

Comments

sachintyagi99 created an issue. See original summary.

Patil_kunal27’s picture

Added extra validation for above issue.

Patil_kunal27’s picture

Status: Active » Needs review
Issue tags: +Please review
Patil_kunal27’s picture

HI sachintyagi99

IS your problem solved ?

sachintyagi99’s picture

Hi Patil,

Yes, Problem regarding file upload has been resolved.

Thanks

sachintyagi99’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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