Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2010
    Posts
    207
    Plugin Contributions
    1

    Default 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:

    Code:
    $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!

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    3,966
    Plugin Contributions
    1

    Default Re: Error when applying "Update" order status

    Quote Originally Posted by hockey2112 View Post
    In reference to this line in the orders.php file:

    Code:
    $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!
    This is code from zencart v1.3.8. You need to update ASAP.

    Cheers
    Rod

  3. #3
    Join Date
    Jun 2010
    Posts
    207
    Plugin Contributions
    1

    Default 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!

 

 

Similar Threads

  1. Replies: 1
    Last Post: 20 Jun 2011, 03:58 AM
  2. 500 Internal Server Error when updating Order Status to "Update [4]"
    By rlexyd in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 28 Apr 2010, 07:09 AM
  3. Order Status: how to change "Delivered" to "Shipped"
    By Razmear in forum General Questions
    Replies: 2
    Last Post: 22 Apr 2009, 04:56 PM
  4. Replies: 1
    Last Post: 27 Mar 2009, 02:05 PM
  5. Replies: 9
    Last Post: 31 Jan 2009, 11:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •