After enabling the module and going to the setup section, altering some settings and try to submit i get

Fatal error: Call to undefined function: array_intersect_key() in /home/weplycom/public_html/porttalbotchat-co-uk/modules/taxonomy_ezfilter/taxonomy_ezfilter.module on line 92

Now i can no longer access the setup page for this module.

Tried both CVS abd 4.7 versions with the same result.

Comments

zealy’s picture

Title: Fatal error: Call to undefined function: array_intersect_key() » You will need the PEAR package PHP_Compat.
Assigned: Unassigned » zealy
Priority: Critical » Minor
Status: Active » Closed (won't fix)

Array_intersect_key() is a php5 function(PHP 5 >= 5.1.0RC1), but you can use it in older php by PEAR package PHP_Compat.

See also:
Function array_intersect_key document at php.net, there are some workarounds for older php in user's comments.
PHP_Compat Package at pear.php.net

Thank you.

desm0n’s picture

Ah thats a real shame as i'm on a shared host and its likely they will not add that.

I'll have to try that other taxonomy filter but i had high hopes for yours.

Maybe you should update documentation to reflect that this is needed as many of php 4 are likely not to have it.

Thanks for your prompt response.

zealy’s picture

Title: You will need the PEAR package PHP_Compat. » Now support PHP 4.3+
Priority: Minor » Normal
Status: Closed (won't fix) » Fixed

I have intergrated a workaround for array_intersect_key() for php <5.1. So this module can support php 4.3+, because array_intersect_assoc() need php 4> 4.3.0 or php 5.

desm0n’s picture

thats great. Is it now including in the CVS ?

I'm really eager to try the module .

zealy’s picture

yes, download and cvs are all updated.

Anonymous’s picture

Status: Fixed » Closed (fixed)