Closed (fixed)
Project:
Glossary
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Feb 2008 at 07:37 UTC
Updated:
12 Mar 2008 at 13:18 UTC
I upgraded from glossary 1.8. After reading this issue - http://drupal.org/node/227013 - I tried flushing all the caches and fiddling with the module settings, but it didn't work. So the error is:
Fatal error: Call to undefined function: array_fill_keys() in /drupal/sites/all/modules/glossary/glossary.module on line 556
Comments
Comment #1
nancydruHmm, it looks like you're using an older version of PHP, lower than version 5.
There are several ways to go here:
NOTE: Drupal 6 already requires at least PHP 5. Drupal 7 will require 5.2+. I strongly recommend that you get your host to upgrade now, or find a new host.
Comment #2
martig commentedI thought it was a php version issue. Maybe you should mention on the glossary project page that v2 is php5 only. Thanks.
Comment #3
nancydruThat's not necessarily the way I want to go; it's not currently a D5 requirement (although I wish it were).. And if I do that, then I need to add a hook_requirements to the module.
Actually, I gave you some incorrect information. Drupal 6 only requires PHP 4.3.5.
And, in looking at all this, I found a much better way to fix the problem. I will commit a fix, but in the meantime, remove the array_fill_keys, and replace it with just "array()".
Comment #4
nancydruFix committed on both branches.
Comment #5
nancydru