Active
Project:
OG Subscriber Management
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Oct 2007 at 06:10 UTC
Updated:
12 Oct 2008 at 14:32 UTC
Hi
I get an error when I click on Subscriber Management:
Fatal error: Call to undefined function: array_combine() in /home/user/public_html/sites/all/modules/og_management/og_management.module on line 299
So before I call it a bug; maybe I've done something wrong? Something missing?
I've enable OG and created users and roles. I've assigned roles in the OG setup.
Comments
Comment #1
dwees commentedHrmm, can you let me know which version of Php you are using? The array_combine function may be Php 5 only.
If this shows up on every page, you can disable the module in the system table manually using some database manipulation like phpmyadmin.
I'll take a closer look at the documentation for array_combine and see if I can work out an alternative.
Dave
Comment #2
Max_Headroom commentedHmm, I wasn't wearing my PHP cap:
You are correct, this server runs PHP 4.4.4
I replaced line 299 with this:
Got the idea from http://www.php.net/array_combine.
Comment #3
Memeshift commentedI was getting a white screen when i would navigate to /og/og_subscribers. When i went in and added the code above in #2, it resolved the problem. thanks!
Comment #4
dwees commentedSince Drupal 5 is supposed to be Php 4.4 friendly, I'll have to commit this fix to the module in the 5.x version. We'll see if a 6.x version of this is necessary.
Dave
Comment #5
alb commentedwork but not completely:
infact I tested and see that not all the roles in admin/og/og_subscribers are listed;
first rows are blank;
with php5 I have all roles;
At me work also with in php 4.x but in an installation where i made many setting
so not know why it work , infact in a fresh installation of OG not work.