Hi, I have just installed the module, but the following error appeared, which leads to the inability to access the module..
array_intersect_key() [function.array-intersect-key]: Argument #1 is not an array in /home/podkre6a/public_html/drupal/modules/og1/og_superadmin/og_superadmin.module on line 30
Being new in Drupal , do not know how to proceed ...
thank you
Comments
Comment #1
Erco commentedSubcribing, I'm currently having the same problem on Drupal 6.6 fresh install
warning: array_intersect_key() [function.array-intersect-key]: Argument #1 is not an array in /usr/websites/agsos.fr/trunk/drupal-6.6/sites/all/modules/og_superadmin/og_superadmin.module on line 30.
I unactivated the module until I completely configure OG
Comment #2
tierecke commentedme too. On Drupal 6.8 fresh install.
Comment #3
himtuna commentedI am also getting this error message, On fresh install 6.9 on localhost.
Virus 2k9 MSIT Techfest
Comment #4
Jehf commentedMe too. Subscribe...
Comment #5
sharrison commentedMe too. Drupal 6.10 fresh install on localhost.
Comment #6
boonep commentedThe error is pointing to this line: $intersection = array_intersect_key(variable_get('og_view_all_groups', 0), $subscriptions);
So, if you haven't yet setup any groups as "superadmin", then you'll have an empty array, and get the error (warning).
To create a superadmin group, go to Organic Groups->Organic Groups Access Configuration & Setup one of your groups as a superadmin group by highlighting the group name under "View Private & Public Groups", & click submit.
The error should go away.
A simple check in the code to see if the variable is empty before attempting intersection would make this warning go away, if anyone wants to create a patch.
Comment #7
rapsli commentedit's been a while... I'm going to work on the module again and will fix this bug.
Comment #8
sHaDoW_LiGhT commentedHello,
My server go down when I set up a superadmin group, any one can tell me why and how to fix that ?
Comment #9
mboc commentedsubscribe!
Comment #10
mboc commentedHi! I know this module is a bit old, but its EXACTLY what I was looking for...
In My site all groups are private, I reached the point where I cuold assign the super admin group permission to one of the groups and then The site went down In Chrome it shows "Error 324 (net::ERR_EMPTY_RESPONSE)"
I have an admin session open The site works only there.
I would appreciate any HELP!!!
Thanks in advance..