Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When ever i try to create new content on my site the site creashes and I get this string of errors
Notice: Undefined property: stdClass::$taxonomy in kwresearch_node_insert() (line 898 of /sites/all/modules/kwresearch/kwresearch.module).
Notice: Undefined offset: 1 in kwresearch_node_insert() (line 905 of /sites/all/modules/kwresearch/kwresearch.module).
Notice: Undefined variable: page_keyword_obj in kwresearch_node_insert() (line 911 of /sites/all/modules/kwresearch/kwresearch.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '70' for key 'PRIMARY': INSERT INTO {node} (nid, vid, type, language, title, uid, status, created, changed, comment, promote, sticky, tnid, translate) 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, :db_insert_placeholder_11, :db_insert_placeholder_12, :db_insert_placeholder_13); Array ( [:db_insert_placeholder_0] => 70 [:db_insert_placeholder_1] => 71 [:db_insert_placeholder_2] => article [:db_insert_placeholder_3] => und [:db_insert_placeholder_4] => testinf [:db_insert_placeholder_5] => 1 [:db_insert_placeholder_6] => 1 [:db_insert_placeholder_7] => 1327613450 [:db_insert_placeholder_8] => 1327613450 [:db_insert_placeholder_9] => 0 [:db_insert_placeholder_10] => 1 [:db_insert_placeholder_11] => 0 [:db_insert_placeholder_12] => 0 [:db_insert_placeholder_13] => 0 ) in drupal_write_record() (line 6888 of /includes/common.inc).
Comment | File | Size | Author |
---|---|---|---|
#7 | Untitled.png | 18.2 KB | trong.nguyen.tcec |
#5 | Screen Shot 2012-05-16 at 22.50.54.PNG | 146.72 KB | noizo |
Screenshot at 2012-01-26 16:35:07.png | 354.78 KB | chubbell |
Comments
Comment #1
chubbell CreditAttribution: chubbell commentedComment #2
longpt CreditAttribution: longpt commentedHow do you fix this. I have same problem
Comment #3
kettultim CreditAttribution: kettultim commentedThere is no fix for this posted. This error happens everytime a new node is saved.
Comment #4
noizo CreditAttribution: noizo commentedSame here!
Only after disabling all options in module, i was able to add translate node
Comment #5
noizo CreditAttribution: noizo commentedComment #6
itaine CreditAttribution: itaine commentedIs this module still supported? True show stopper. Has anyone found a workaround?
edit: I narrowed it down to the Taxonomy Settings.
Make sure you have the following two options:
PAGE KEYWORD SYNC VOCABULARY & PAGE KEYWORD TAG VOCABULARY
...set to NONE.
Comment #7
trong.nguyen.tcec CreditAttribution: trong.nguyen.tcec commentedThe error is "pdoexception: sqlstate[23000]: integrity constraint violation: 1062 duplicate entry for key 'primary': insert into {node}....' when using kwresearch module. User cannot add any new content (article, page, node...).
You are right Itanie, USER SHOULD SET TO "NONE" at "Taxonomy settings" PART : "Page keyword sync vocabulary ". Path for Ediiting: "admin/config/search/kwresearch"
Thanks to Itanie, i try to rewirte error status to help other users find and resolve issue easily.
Comment #8
lsolesen CreditAttribution: lsolesen commented@memberall Could you confirm this bug with the latest dev? Should anything be fixed in this issue?