Closed (fixed)
Project:
e-Commerce
Version:
5.x-4.x-dev
Component:
store
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2007 at 20:15 UTC
Updated:
23 Dec 2007 at 23:31 UTC
When I click to links related to orders overview (payment pending, order needing action, completed) and sales overview (monthly orders) a fatal error occor: "Fatal error: Call to undefined function: array_diff_key() in /web/htdocs/www.mysite.com/home/modules/ecommerce/store/store.module on line 1014"
Is this due to the PHP5.2 requisition?
How can I do running with 4.4.7 PHP Version?
Thank in advance.
Comments
Comment #1
gordon commentedYes it is, You can use PHP_Compat from the pear.php.net
Comment #2
gordon commentedComment #3
gordon commentedComment #4
jimmypreserve commentedThanx Gordon, it's gone without error.
Jimmy
Comment #5
Phillip Mc commentedsorry guys, but, how did you fix that?
I have the same problem but don't understand what the PHP_Compat is or how to enable it in Drupal.
phil
Comment #6
dublin drupaller commentedHi Phil,
here's how I fixed it.
Paste this into the bottom of your ec_common.module.
For other drupallers reading this...the ecommerce suite of modules needs php version 5 to run properly. therefore, if you're on php4 you need to add in some functions not available such as the above...the
array_diff_key()function.Dub
Comment #7
gordon commentedYou can use the PHP_Compat library. See http://drupalecommerce.org/node/32 for information on installing this.
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.