Fatal error on line 299

servantofthebones - October 10, 2008 - 02:33
Project:OG Subscriber Management
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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

#1

dwees - October 10, 2008 - 04:27
Status:active» 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.

#2

alb - October 12, 2008 - 13:28

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.

#3

alb - October 12, 2008 - 14:33

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

#4

dwees - October 12, 2008 - 15:55

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

<?php
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;
  }
}
?>

#5

servantofthebones - November 10, 2008 - 19:25
Status:duplicate» closed

Thanks for the responses fellas.

#6

dwees - November 11, 2008 - 01:16
Status: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

 
 

Drupal is a registered trademark of Dries Buytaert.