For seemingly no reason whatsoever, I am getting this error message whenever I try to create a new block. Thought it might be the LoginTobagan module I just added, but that is not it, since I removed it completely and am still getting this message. Any help would be greatly appreciated. No idea how to fix this.
PDOException: SQLSTATE[HY000]: General error: 1364 Field 'bid' doesn't have a default value: INSERT INTO {block_custom} (body, info, format) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => Test. [:db_insert_placeholder_1] => Test Block [:db_insert_placeholder_2] => filtered_html ) in block_add_block_form_submit() (line 560 of /home1/htalwala/colorscopy.com/modules/block/block.admin.inc).
Comments
Comment #1
flaviovs commentedColumn
bidshould be auto increment. So, there should not be any problem running the SQL you posted. This is from a D7 MySQL database:What is your database driver?
Can you please post a schema view of your
block_customtable?Comment #2
cilefen commentedThere was not a reply from the original reporter in one year.