I used og_subgroups-5.x-1.0 without getting any warning messages. When I upgraded to og_subgroups-5.x-2.0, I now get this warning every time I create a new group:

"user warning: Duplicate entry '107-0-og_public' for key 1 query: INSERT INTO node_access (nid, realm, gid, grant_view, grant_update, grant_delete) VALUES (107, 'og_public', 0, 1, 0, 0) in /var/www/html/websites/drupal/sc/includes/database.mysql.inc on line 172."

I looked in the node_access table, and the duplicated key is not created until the add node process which creates the new group. In other words, something in the add node process is trying to create this record twice.

I am using og-5.x-3.0

Thanks for any info you can provide.

Comments

vikingew’s picture

I think this comes from og itself, check this:
http://drupal.org/node/147919

the patch worked for me.

ezra-g’s picture

Status: Active » Closed (duplicate)

This was an issue with OG and has been fixed. Marking as duplicate of http://drupal.org/node/147919 .