Hello,

I have been running Drupal since 2003. Most recently, I was on 6.20. I updated that to 6.24, tested it and everything worked. Then I updated that to 7.12. I was given no errors and the site looks fine, until I try to create content then I get the following error.

PDOException: SQLSTATE[HY000]: General error: 1364 Field 'teaser' doesn't have a default value: INSERT INTO {node} (vid, type, language, title, uid, status, created, changed, comment, promote, sticky) 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] => 0 [:db_insert_placeholder_1] => blog [:db_insert_placeholder_2] => und [:db_insert_placeholder_3] => Never Buy From Toshiba, they cannot accpet they may sell defective devices ever. [:db_insert_placeholder_4] => 1 [:db_insert_placeholder_5] => 1 [:db_insert_placeholder_6] => 1328534620 [:db_insert_placeholder_7] => 1328534620 [:db_insert_placeholder_8] => 2 [:db_insert_placeholder_9] => 1 [:db_insert_placeholder_10] => 0 ) in drupal_write_record() (line 6975 of /var/www/html/drupal/includes/common.inc).

Do you have any suggestions where to start or what might be wrong?

Comments

gnanaprakash’s picture

i have site on drupal 6.15, then updated to 6.24 and the 7.12. Its works fine. But i enable some new modules it's give db error to me.

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '_pm_setting' doesn't exist: SELECT pms.type AS type, pms.id AS id, pms.value AS value FROM {pm_setting} pms WHERE (pms.setting = :db_condition_placeholder_0) AND(( (pms.type = :db_condition_placeholder_1) AND (pms.id IN (:db_condition_placeholder_2)) )OR( (pms.type = :db_condition_placeholder_3) AND (pms.id IN (:db_condition_placeholder_4)) )OR( (pms.type = :db_condition_placeholder_5) AND (pms.id IN (:db_condition_placeholder_6)) )); Array ( [:db_condition_placeholder_0] => disabled [:db_condition_placeholder_1] => user [:db_condition_placeholder_2] => 1 [:db_condition_placeholder_3] => role [:db_condition_placeholder_4] => 2 [:db_condition_placeholder_5] => global [:db_condition_placeholder_6] => 0 ) in privatemsg_get_setting() (line 3363 of ...sites\all\modules\privatemsg\privatemsg.module).