Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2005
    Posts
    58
    Plugin Contributions
    0

    Default Shipstation Function strftime() is deprecated in 1.58

    Zen Cart 1.5.8 upgraded from 1.5.7d
    PHP Version: 8.1.10 (Zend: 4.1.10)
    MySQL 5.7.30
    Plugins:
    one_page_checkout-2.4.3, edit_orders-4.6.2, mailchimp, Google reCaptcha v3.4

    Upgraded to 1.5.8 and getting this error when ShipStation calls out for an update.

    Code:
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(105): zen_debug_error_handler()
    #1 /shipstation_zc.php(176): zen_datetime_short2()
    --> PHP Deprecated: Function strftime() is deprecated in /shipstation_zc.php on line 105.

  2. #2
    Join Date
    Mar 2005
    Posts
    58
    Plugin Contributions
    0

    Default Re: Shipstation Function strftime() is deprecated in 1.58

    Quote Originally Posted by gtgeorge View Post
    Zen Cart 1.5.8 upgraded from 1.5.7d
    PHP Version: 8.1.10 (Zend: 4.1.10)
    MySQL 5.7.30
    Plugins:
    one_page_checkout-2.4.3, edit_orders-4.6.2, mailchimp, Google reCaptcha v3.4

    Upgraded to 1.5.8 and getting this error when ShipStation calls out for an update.

    Code:
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(105): zen_debug_error_handler()
    #1 /shipstation_zc.php(176): zen_datetime_short2()
    --> PHP Deprecated: Function strftime() is deprecated in /shipstation_zc.php on line 105.
    As well as the rest:

    Code:
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(130): zen_debug_error_handler()
    --> PHP Warning: Undefined array key "customers_default_address_id" in /shipstation_zc.php on line 130.
    
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(228): zen_debug_error_handler()
    --> PHP Warning: Undefined array key "zone_code" in /shipstation_zc.php on line 228.
    
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(250): zen_debug_error_handler()
    --> PHP Warning: Undefined array key "zone_code" in /shipstation_zc.php on line 250.
    
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(130): zen_debug_error_handler()
    --> PHP Warning: Undefined array key "customers_default_address_id" in /shipstation_zc.php on line 130.
    
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(228): zen_debug_error_handler()
    --> PHP Warning: Undefined array key "zone_code" in /shipstation_zc.php on line 228.
    
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(250): zen_debug_error_handler()
    --> PHP Warning: Undefined array key "zone_code" in /shipstation_zc.php on line 250.
    
    [28-Oct-2022 19:43:15 America/New_York] Request URI: /shipstation_zc.php?SS-UserName=MyUsername&SS-Password=MyPasswordaction=export&start_date=10%2f27%2f2022+23%3a55&end_date=10%2f29%2f2022+16%3a43&page=1, IP address: 34.200.10.239
    #0 /shipstation_zc.php(130): zen_debug_error_handler()
    --> PHP Warning: Undefined array key "customers_default_address_id" in /shipstation_zc.php on line 130.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,671
    Plugin Contributions
    123

    Default Re: Shipstation Function strftime() is deprecated in 1.58

    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Jul 2013
    Posts
    9
    Plugin Contributions
    0

    Default Re: Shipstation Function strftime() is deprecated in 1.58

    anyone know how to fix this?

    i've added

    Code:
    global $zcDate;
    return $zcDate->output(DATE_FORMAT_LONG, mktime($hour, $minute, $second, $month, $day, $year));
    but get this error now: PHP Fatal error: Uncaught Error: Call to a member function output() on null on the return line

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Shipstation Function strftime() is deprecated in 1.58

    FWIW, I replaced the return statement in the zen_datetime_short2 function with
    PHP Code:
        return date('m/d/Y H:i:s'mktime($hour$minute$second$month$day$year));  //- zc158 upgrade, replace deprecated strftime 

  6. #6
    Join Date
    Jul 2013
    Posts
    9
    Plugin Contributions
    0

    Default Re: Shipstation Function strftime() is deprecated in 1.58

    Quote Originally Posted by lat9 View Post
    FWIW, I replaced the return statement in the zen_datetime_short2 function with
    PHP Code:
        return date('m/d/Y H:i:s'mktime($hour$minute$second$month$day$year));  //- zc158 upgrade, replace deprecated strftime 
    thank you

 

 

Similar Threads

  1. v137 Deprecated: Function ereg() is deprecated Error
    By esugrue in forum General Questions
    Replies: 6
    Last Post: 28 Mar 2012, 11:40 PM
  2. Deprecated: Function ereg() is deprecated
    By hsartcorp in forum General Questions
    Replies: 3
    Last Post: 19 Sep 2011, 08:08 PM
  3. Can't Login Any More: "Deprecated: Function ereg() is deprecated"
    By Slicer5489 in forum Basic Configuration
    Replies: 3
    Last Post: 21 May 2011, 11:16 PM
  4. Replies: 2
    Last Post: 3 Mar 2010, 12:53 PM
  5. Replies: 4
    Last Post: 16 Jan 2010, 02:11 AM

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