Download & Extend

Fatal error: Call to undefined function: array_intersect_key()...

Project:User Visits
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Ambrosy
Status:closed (won't fix)

Issue Summary

When you open a profile pages:

Fatal error: Call to undefined function: array_intersect_key() in /.../public_html/sites/all/modules/user_visits/user_visits.module on line 282

An example here: http://credit-helpers.com/user/1 (not my site)

Comments

#1

Category:bug report» support request
Priority:critical» normal
Status:active» closed (won't fix)

The function is available since PHP 5.1.0 see http://de2.php.net/array_intersect_key
You probably need to upgrade your php installation or rewrite the function and include it in the module (see the comments on php.net).

#2

FWIW I had to disable PHP 5 then re-enable it. (Lunarpages hosting)

#3

Version:5.x-1.x-dev» 6.x-1.4
Category:support request» bug report

This also happened to me after the update from 6.15 to 6.16 in one of my sites. After the update I tried to open the administration page and got this error:

Fatal error: Call to undefined function: array_intersect_key() in /...//public_html/modules/update/update.compare.inc on line 695

I switched the server php to php4 and then back to 5 and the issue resolved! Seems it has to do something with the server (I also updated another site that runs on different server and didn't get this issue...)

nobody click here