When trying to add an organization I get the error:
DatabaseTransactionNoActiveException: in DatabaseConnection->rollback() (regel 1035 van/var/xxxxx/includes/database/database.inc).
and in the log is also:
PDOException: SQLSTATE[HY000]: General error: 1364 Field 'revision_id' doesn't have a default value: INSERT INTO {redhen_org} (type, label, author_uid, primary_contact_id, redhen_state, created, updated) 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); Array ( [:db_insert_placeholder_0] => organisatie [:db_insert_placeholder_1] => orgeen [:db_insert_placeholder_2] => 1 [:db_insert_placeholder_3] => 0 [:db_insert_placeholder_4] => 1 [:db_insert_placeholder_5] => 1365433060 [:db_insert_placeholder_6] => 1365433060 ) in drupal_write_record() (regel 7136 van /var/xxxxxx/includes/common.inc).
I saw a patch org-revisions.patch but that one is not working correctly and not for this version.
Please help
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | redhen-create_org_php_error-1964530-3.patch | 845 bytes | fenstrat |
Comments
Comment #1
wmfinnegan commentedI'm getting the same error - I tried upgrading to the dev version of Entity API, but that didn't help either...
Comment #2
levelos commentedSorry folks, fixed in 816ba188e8af353fe79b27a17133a1fd8e4f7841.
Comment #3
fenstratWhile #2 fixes the error on new installs it doesn't for existing installs.
The attached ads a hook_update_N() to get the schema back in sync for existing installs.
Comment #4
levelos commentedThanks fenstrat, fixed ine5b4b47.
Comment #5
fenstratNo worries thank Lev, and for the commit credit.
Comment #7
groovehunter commentedI got that on a fresh 1.3 , is a new issue needed or change version here?