I created a mini panel. on the context tab, I created two node contexts. One is labeled "node" and links to one node I created. The second is labeled "node 2" and links to a different node I created. I saved these and clicked on "Content" to add these two panes into my mini panel.

I added the first one OK by clicking the "+" sign and then clicking node content in the node context row. It asked which node to add and I selected "node." I then did the same to add "node 2" and got the following error message:

user warning: Duplicate entry '0' for key 1 query: INSERT INTO panels_pane (pid, did, panel, type, subtype, configuration, cache, access, position) VALUES (0, 83, '', '', '', 'N;', 'a:0:{}', '', 1) in /home/crsnyorg/public_html/drupal/includes/database.mysql.inc on line 172.
user warning: Duplicate entry '0' for key 1 query: INSERT INTO panels_pane (pid, did, panel, type, subtype, configuration, cache, access, position) VALUES (0, 83, '', '', '', 'N;', 'a:0:{}', '', 2) in /home/crsnyorg/public_html/drupal/includes/database.mysql.inc on line 172.
user warning: Duplicate entry '0' for key 1 query: INSERT INTO panels_pane (pid, did, panel, type, subtype, configuration, cache, access, position) VALUES (0, 83, '', '', '', 'N;', 'a:0:{}', '', 3) in /home/crsnyorg/public_html/drupal/includes/database.mysql.inc on line 172.
user warning: Duplicate entry '0' for key 1 query: INSERT INTO panels_pane (pid, did, panel, type, subtype, configuration, cache, access, position) VALUES (0, 83, '', '', '', 'N;', 'a:0:{}', '', 4) in /home/crsnyorg/public_html/drupal/includes/database.mysql.inc on line 172.

Comments

sdboyer’s picture

Assigned: Unassigned » sdboyer

Interesting problem, clearly the new pids aren't being assigned correctly; judging from the fact that it tried to assign a pid of 0 to, I'm guessing, BOTH of the panes, it means that there's a problem with getting a pids somewhere in the save process. Seems like a genuine bug, it's on my list to fix for beta4.

cpelham’s picture

The good thing about it is no errors show to the end user. It works fine and haven't noticed any nasty side effects. I just see the error messages every time I add/delete/alter content on the Panels content screen and click save.

jbrown’s picture

Version: 5.x-2.0-beta3 » 5.x-2.0-beta5

reproduced on beta5

sdboyer’s picture

@jbrown - Sorry, but beta5 isn't the most recent release, and I really can't take time to work on anything that's not been reproduced on anything but the most recent release. Update to rc1a and if it's still a problem, then I'll revisit this.

sun’s picture

Status: Active » Closed (won't fix)

Sorry, without further information this issue can only be marked as won't fix. Feel free to re-open this issue if you want to provide further information.