I just upgraded from Drupal 7.8 to 7.10. All seemed to go pretty well, except that now for the pages with any custom image fields that I have created, I am getting these 2 errors at the top of the page(s):
Notice: Undefined property: stdClass::$field_imageurl_staff_width in field_sql_storage_field_storage_load() (line 360 of /home3/covellog/public_html/modules/field/modules/field_sql_storage/field_sql_storage.module).
and
Notice: Undefined property: stdClass::$field_imageurl_staff_height in field_sql_storage_field_storage_load() (line 360 of /home3/covellog/public_html/modules/field/modules/field_sql_storage/field_sql_storage.module).
where $field_imageurl_staff is my custom image field.
i tried turning off error reporting in my php.ini file. but this is not working.
please help.
thank you
Jean (drupal newbie)
p.s.
i now see my problem goes much deeper. i just tried to upload a new staff image to a staff page and i get this error. (see error message below)
this all was working fine in v7.8 before the upgrade to 7.10.
any ideas?
thanks, jean
error i'm receiving when trying to upload file:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_imageurl_staff_width' in 'field list': INSERT INTO {field_data_field_imageurl_staff} (entity_type, entity_id, revision_id, bundle, delta, language, field_imageurl_staff_fid, field_imageurl_staff_alt, field_imageurl_staff_title, field_imageurl_staff_width, field_imageurl_staff_height) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 56 [:db_insert_placeholder_2] => 56 [:db_insert_placeholder_3] => staff [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => 401 [:db_insert_placeholder_7] => Art Gibney [:db_insert_placeholder_8] => Art Gibney [:db_insert_placeholder_9] => 360 [:db_insert_placeholder_10] => 450 ) in field_sql_storage_field_storage_write() (line 448 of /home3/covellog/public_html/modules/field/modules/field_sql_storage/field_sql_storage.module).
Comments
question answered
http://drupal.org/node/1343794
the above discussion thread answered my question. apparently (unfortunately), when going from 7.8 to 7.9, width and height fields were left out of the database tables for any image fields created in 7.8.
reverting to prior db and running update.php did not fix the problem.
so i manually went into my db tables and added the 2 fields and populated them. a pain, but has solved the problem.
jean
Even I faced same problem
Even I faced the same problem after updating image module, my project is at initial stage so I deleted existing image field and added new image that how I solved problem
Drupal developer