Closed (works as designed)
Project:
e-Commerce
Version:
5.x-4.0-alpha5
Component:
ec_receipt
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2007 at 09:08 UTC
Updated:
10 Nov 2007 at 03:07 UTC
I obtain always this error and I can proceed only eliminating
ec_receipt
Fatal error: Call to undefined function: array_intersect_key() in /web/htdocs/extra.hopfrog.it/home/modules/ecommerce/ec_receipt/ec_receipt.module on line 917
Comments
Comment #1
gordon commentede-Commerce requires PHP5.2 or the PHP_Compat package from PEAR
Comment #2
Leech commentedYou can also add this function at the end:
Comment #3
tdave00 commentedCould you expound a little on exactly where to add that function. I am having the same problem and I assume it is due to my servers version of php.
Comment #4
gordon commentedIn your settings.php add the following.
Comment #5
craigwilcox commentedi'm getting the exact same error. i have php 4.47, but i just installed the Compat module, and it's still not working. if you can provide a solution, please give me the exact folder path to use. thanks!
craig
Comment #6
tonedoggydogg commentedI also found where PHP_Compat will fix this problem, so I understand what's going on. My server has both php 4.x and 5.x but the file must end in .php5 in order to implement the 5.x version. So using PHP_Compat would be cool, and I'd love to put this in settings.php...
But whereis settings.php located??? Sorry for such a stupid question.
Comment #7
bwv commentedtdave00: that function (without the <?php> goes at the end of the ec_receipt module. This emendation worked for me. I am using PHP 5.0.5. bwv
Comment #8
tdave00 commentedThanks for the clarifying that.
Comment #9
tdave00 commentedThis worked for me. I pasted it at the bottom of ec_receipt.module (without the php statements). Thanks