Closed (won't fix)
Project:
Unitag
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2008 at 17:15 UTC
Updated:
18 Feb 2009 at 06:50 UTC
When submitting a new node that has a free tagging category sassociated,
unitag.module,v 1.1.2.26 2008/01/23 16:52:40
throws error:
Fatal error: Call to undefined function: array_intersect_key() in ..../sites/all/modules/unitag/unitag.module on line 713
I'm on php 4.3.11, drupal 5.7 (recently upgraded from 5.6). This used to work before, not sure what introduced this behavior since the function array_intersect_key has been in unitag from the start it seems.
Php 4 is still a supported release for drupal so I think modules shouldn't use php5 functions like array_intersect_key.
Appreciating this useful module, thanks for your help
Comments
Comment #1
jenso commentedjust happen to me as well,
was editing an existing content, in this case video, and add a few tags. Upon save the same error as above was showing.
Fatal error: Call to undefined function: array_intersect_key() in /home/.../modules/unitag/unitag.module on line 713
Can anybody share why this happens and how to fix it. Until than I have to stop using that module. Thanks for reading.
I use right now:
Drupal 5.3
MySQL database 4.1.22
PHP 4.4.4
Unicode library PHP Mbstring Extension
Web server Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Comment #2
chrisschaub commentedYour problem is php4. The unfound function is only present in php5 or greater.
See here for a possible solution:
http://drupal.org/node/230267
Comment #3
Zen commentedSeeing as to how nobody should really be using PHP 4, I'm going to won't fix this. I have, however, added a note on the project page mentioning the workaround suggested by lutegrass.
Cheers,
-K