Posted by kansaj on November 19, 2008 at 12:56pm
Jump to:
| Project: | Og Superadmin |
| Version: | 6.x-1.1-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
Subcribing, 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
#2
me too. On Drupal 6.8 fresh install.
#3
I am also getting this error message, On fresh install 6.9 on localhost.
Virus 2k9 MSIT Techfest
#4
Me too. Subscribe...
#5
Me too. Drupal 6.10 fresh install on localhost.
#6
The 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.
#7
it's been a while... I'm going to work on the module again and will fix this bug.
#8
Hello,
My server go down when I set up a superadmin group, any one can tell me why and how to fix that ?
#9
subscribe!
#10
Hi! 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..