Forums / Managing Customers and Orders / Error when applying "Update" order status

Error when applying "Update" order status

Views: 1,099

Results 1 to 3 of 3
5 Apr 2012, 4:02 PM
#1
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Error when applying "Update" order status

Hello,

When I choose the order status "update" and submit it via the order management panel, I receive a white page. The debug file in cache says this:

[05-Apr-2012 11:00:52] PHP Fatal error: Call to undefined function date_diff() in /home/mydirectory/public_html/myadmin/orders.php on line 148

In reference to this line in the orders.php file:

$zc_max_days = date_diff($check_status->fields['date_purchased'], date('Y-m-d H:i:s', time())) + DOWNLOAD_MAX_DAYS;

Any ideas on how I can fix that issue?

Thanks!

6 Apr 2012, 9:02 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Error when applying "Update" order status

hockey2112:

In reference to this line in the orders.php file:

$zc_max_days = date_diff($check_status->fields['date_purchased'], date('Y-m-d H:i:s', time())) + DOWNLOAD_MAX_DAYS;

> 
> Thanks!

This is code from zencart v1.3.8.  You need to update ASAP. 

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

6 Apr 2012, 1:50 PM
#3
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Re: Error when applying "Update" order status

It must have "snuck in" with an old module installed a year or so ago. Thanks for your help!