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

sanduhrs’s picture

Category: bug » support
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).

mnoyes’s picture

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

digibill’s picture

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

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...)