when i enable the module i get the following error message:

Fatal error: Call to undefined function: array_combine() in /home/box/public_html/modules/og_management/og_management.module on line 299

Comments

dwees’s picture

Status: Active » Closed (duplicate)

There is another issue in the queue about this. This is because your Php version is less than 5. Check out the other issue #184114: White screen when going to /og/og_subscribers.

alb’s picture

In a fresh installation have same error (also installed group access, group user role, og role)
but in other installation where I have same og modules installed but created some groups, some roles, some settings etc. I not have this error.

I use php 4.x.

But cannot said where is the problem.

alb’s picture

see also here http://drupal.org/node/184114#comment-1055810

I notice that with php5 work make now a test;
but if use the code suggest by post I lnekd not work good

dwees’s picture

Try this (from http://th.php.net/array_combine)


if (!function_exists('array_combine')) {
  function array_combine($arr1, $arr2) {
      $out = array();
   
      $arr1 = array_values($arr1);
      $arr2 = array_values($arr2);
   
      foreach($arr1 as $key1 => $value1) {
        $out[(string)$value1] = $arr2[$key1];
      }
   
      return $out;
  }
}

ravenite@gmail.com’s picture

Status: Closed (duplicate) » Closed (fixed)

Thanks for the responses fellas.

dwees’s picture

Status: Closed (fixed) » Closed (duplicate)

Actually I need to keep this open until I fix this in the module itself, since Drupal is supposed to support Php versions less than 5.

Dave