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 |
Jump to:
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
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
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
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
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
Thanks for the responses fellas.
#6
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