After node insert I have this error.
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'node-108740-108778-full' for key 'PRIMARY': INSERT INTO {panelizer_entity} (entity_type, entity_id, revision_id, name, no_blocks, css_id, css, pipeline, contexts, relationships, did, view_mode, css_class, title_element, link_to_entity, extra) VALUES (........) in drupal_write_record() (line 7194 of /var/www/drupal/includes/common.inc).
After investigate I see that hook_entity_update calls before hook_entity_insert, and in this case we can have PDOException Duplicate entry.
I use drupal 7.26, panelizer 3.1
Comment | File | Size | Author |
---|---|---|---|
#2 | 2224403-Panelizer-fix-PDOException-on-node-insert.patch | 1.54 KB | AndrewsizZ |
Comments
Comment #1
AndrewsizZ CreditAttribution: AndrewsizZ commentedComment #2
AndrewsizZ CreditAttribution: AndrewsizZ commentedAdded patch, seems works fine for me.
Comment #4
AndrewsizZ CreditAttribution: AndrewsizZ commentedComment #5
AndrewsizZ CreditAttribution: AndrewsizZ commentedplease retest
Comment #6
DamienMcKennaPlease test the latest -dev release, I believe that bug was resolved a while ago.
Comment #7
AndrewsizZ CreditAttribution: AndrewsizZ commentedsorry, issue not related to this module
Comment #8
drurian CreditAttribution: drurian commentedI've had the same issue when "Provide initial display" option is checked. Applying the patch fixed the issue.
Comment #9
drurian CreditAttribution: drurian commentedUpdate: the issue is gone in the latest build (but I do get 404 when I go to panelizer/page_manager before the entity is panelized (or after clicking on the panelize link).
Comment #10
DamienMcKenna@drush fan: I believe the 404 error you're seeing is an known bug, do a search elsewhere in the issue queue to find it. Thanks.