I inceptioned a group and broke Open Atrium. Steps to reproduce:
1) Create a OA group.
2) Open OA group.
3) Click on Inherited.
4) Add OA group onto itself.
5) Watch OA die.
Error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/circle/public_html/includes/bootstrap.inc on line 3404
Error on fresh pantheon:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /srv/bindings/3863cf1c4ee440f8a693575a63795327/code/includes/bootstrap.inc on line 3445
So other than the obvious bug here, does anyone have any suggestion on fixing this via the database? The problem is now I can't do anything with the group. I can't open, edit, or delete it without running into the same issue.
Comments
Comment #2
Argus CreditAttribution: Argus as a volunteer commentedWhat do you mean by "Inceptioned"?
How do I " Add OA group onto itself." ?
Comment #3
mtharani CreditAttribution: mtharani commentedPoor attempt at humor, I suppose. As in the movie Inception. A dream within a dream. A group within a group. Anyway, not sure what else you need. OA = Open Atrium. Add an Open Atrium group and then go into inherited and add the group onto itself.
Comment #4
mpotter CreditAttribution: mpotter at Phase2 commentedYep, there is really no way for Atrium to detect an infinite loop like this. Even if it checked against adding a group to itself you could still kill it by making a 3-group loop of A -> B -> C -> A.
Anyway, to fix this you'll probably need to do a direct DB query. Do a select on the Node table to determine the nid of the group. Then select on the field_data_oa_parent_space and look for a record with entity_id = nid and delete that record.
Comment #5
mtharani CreditAttribution: mtharani commentedUnfortunately, field_data_oa_parent_space is empty. I have other working spaces/groups with parents though, so it must just be the wrong table?
Comment #6
mpotter CreditAttribution: mpotter at Phase2 commentedOK, try the og_membership table where gid is the parent group nid and etid is the child group nid.