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
    6,167
    Plugin Contributions
    7

    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. v150 Gigantic Flag pic in "Order Status" / Cannot re-order or edit "order status" text
    By lindagal2 in forum Managing Customers and Orders
    Replies: 6
    Last Post: 25 Aug 2016, 06:16 PM
  2. Changing "Default Order Status" from "Delivered" to "Shipped"
    By CookieMonster in forum Customization from the Admin
    Replies: 1
    Last Post: 25 Nov 2014, 12:22 AM
  3. Replies: 1
    Last Post: 20 Jun 2011, 03:58 AM
  4. 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
  5. Replies: 1
    Last Post: 27 Mar 2009, 02:05 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR