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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AndrewsizZ’s picture

Issue summary: View changes
AndrewsizZ’s picture

Status: Needs work » Needs review
FileSize
1.54 KB

Added patch, seems works fine for me.

Status: Needs review » Needs work

The last submitted patch, 2: 2224403-Panelizer-fix-PDOException-on-node-insert.patch, failed testing.

AndrewsizZ’s picture

Version: 7.x-3.1 » 7.x-3.x-dev
AndrewsizZ’s picture

Status: Needs work » Needs review

please retest

DamienMcKenna’s picture

Status: Needs review » Postponed (maintainer needs more info)

Please test the latest -dev release, I believe that bug was resolved a while ago.

AndrewsizZ’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

sorry, issue not related to this module

drurian’s picture

I've had the same issue when "Provide initial display" option is checked. Applying the patch fixed the issue.

drurian’s picture

Update: 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).

DamienMcKenna’s picture

@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.