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

Erco’s picture

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

tierecke’s picture

me too. On Drupal 6.8 fresh install.

himtuna’s picture

I am also getting this error message, On fresh install 6.9 on localhost.

Virus 2k9 MSIT Techfest

Jehf’s picture

Me too. Subscribe...

sharrison’s picture

Me too. Drupal 6.10 fresh install on localhost.

boonep’s picture

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.

rapsli’s picture

it's been a while... I'm going to work on the module again and will fix this bug.

sHaDoW_LiGhT’s picture

Hello,

My server go down when I set up a superadmin group, any one can tell me why and how to fix that ?

mboc’s picture

subscribe!

mboc’s picture

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..