Postponed (maintainer needs more info)
Project:
Group Admin
Version:
6.x-2.2-beta1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 May 2011 at 17:36 UTC
Updated:
5 Jan 2013 at 13:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
andy inman commentedIs this reproducible? It's not a generic problem, perhaps configuration related. More info please.
Comment #2
bradspry commentedDiscovered the issue after drush upgrading from 6.x-2.1 to 6.x-2.2-beta1. It was a regular upgrade process, no configuration change. Had to revert back to 6.x-2.1 after encountering this.
Comment #3
andy inman commentedLooking at the groupadmin.access.inc.php, I can't imagine what might be happening. There are no loops in there nor other processing that I would expect might take considerable time. Waiting to see if there are any more reports - apparently there are 56 active installs of 2.2-beta1 and nobody else has reported this, so for now I assume it was some random error, possibly not actually related to GA.
Comment #4
cgmonroe commentedI am also seeing this problem with 2.2-beta1. Times out in groupadmin.access.inc.php... lines 80, 37, 36, and 78, even after I upped the timeout to 2 minutes.
This is happening anytime a normal user who has been "promoted" to group manager tries to access the Member panel.
I'm also using og_panels on this site. If it matters, there are about 70 members in the group.
This does not happen for "super" users... e.g. folks who can administer permissions or administer groupadmins.
Group admin access control permissions are:
Basic Access: admins
Show Admins: admins
Show Members: members
Show Non-Members: admins
Show E-mail: nobody
Show Real Names: nobody
More permissions checked.
Comment #5
andy inman commentedOk, so at a guess it seems the loop in groupadmin.access.inc.php lines 77-81 is the culprit. Here are lines 68-81...
Possibly, $n is NULL on entry, so the following might fix the bug...
Comment #6
addicted_to_drupal commentedI had the same problem, i went on the net and after a lot pages i found this one
the soluce
And it works. You have to go one location of drupal/sites/default folder then found the file defaulf.setting and add new line on it
ini_set('max_execution_time', 0);
You can also use others one like
ini_set('session.cookie_lifetime', 2000000);
it's as you wish
I hope it help's you
Comment #7
andy inman commentedIncreasing 'max_execution_time' is a work-around rather than a solution.
Comment #8
kfall commentedI fixed this with the following to allow for authenticated users without other roles, which would trigger the infinite loop condition.
groupadmin.access.inc.php
line 77:
//while($n >= 0 && !$has_role) {
while($n > 0 && !$has_role) {
Comment #9
andy inman commentedHi kfall, the code *should* be executed for $n == 0 as well as higher values, and your change will bypass that state. I would suggest you use my fix from #5 instead.