Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Location
    Corning, NY
    Posts
    8
    Plugin Contributions
    0

    Default ups has a deprecated constructor

    Getting this error in my logs...Things still working, but I guess that UPS module has some update needed....Is there anyway to keep this from logging until there is an update?

    [31-Dec-2020 17:42:12 UTC] Request URI: /index.php?main_page=checkout_shipping, IP address:
    #1 include_once() called at [/home4/X/public_html/store/includes/classes/shipping.php:67]
    #2 shipping->__construct() called at [/home4/X/public_html/store/includes/modules/pages/checkout_shipping/header_php.php:101]
    #3 require(/home4/bearsta1/public_html/store/includes/modules/pages/checkout_shipping/header_php.php) called at [/home4/X/public_html/store/index.php:35]
    --> PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ups has a deprecated constructor in /home4/bearsta1/public_html/store/includes/modules/shipping/ups.php on line 13.

    Server Information

    Server Host: .justhost.com ()
    Database: X_zc4
    Server OS: Linux 3.10.0-693.11.6.1.ELK.el6.x86_64
    Server Date: 12/31/2020 18:29:14
    Server Up Time: 18:29:14 up 1072 days, 11:20, 1 user, load average: 0.00, 0.00, 0.00
    HTTP Server: Apache
    PHP Version: 7.4.13 (Zend: 3.4.0)
    PHP File Uploads: On
    Upload Max Size: 256M
    PHP Memory Limit: 256M
    POST Max Size: 260M
    Database Engine: MySQL 5.6.41-84.1
    Database Host: localhost (127.0.0.1)
    Database Date: 12/31/2020 18:29:14
    Database Data Size: 2,801 kB
    Database Index Size: 842 kB
    MySQL Slow Query Log Status: On
    MySQL Slow Query Log File: /var/log/slow-queries.log
    MySQL Mode: NO_ENGINE_SUBSTITUTION

  2. #2
    Join Date
    Aug 2012
    Location
    Corning, NY
    Posts
    8
    Plugin Contributions
    0

    Default Re: ups has a deprecated constructor

    Actually, UPS Module is not working...from the Check out Shipping Method:

    We are unable to obtain a rate quote for UPS shipping.
    Please contact the store if no other alternative is shown.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: ups has a deprecated constructor

    You might try the UPS XML shipping method instead: https://www.zen-cart.com/downloads.php?do=file&id=126

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ups has a deprecated constructor

    The old UPS module you're referring to hasn't been "built in" to Zen Cart for a very very long time. It is probably quite outdated.

    Lat9's suggestion is a solid one.

    If you use the UPS XML module, then you should delete the old UPS module you currently have. It's comprised of two files: /includes/modules/shipping/ups.php and /includes/languages/english/modules/shipping/ups.php

    Alternatively you could "try" editing the /includes/modules/shipping/ups.php file and find the "function ups()" line (comes not far after "class ups()"), and change "function ups(" to "function __construct(". Note the double-underscore. This might buy you time until you can install the UPS XML mod. But again, the old module might require other changes as well, so the UPS XML module is a better choice.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

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. Replies: 2
    Last Post: 21 Aug 2010, 09:13 PM
  3. Replies: 2
    Last Post: 3 Mar 2010, 12:53 PM
  4. Replies: 4
    Last Post: 16 Jan 2010, 02:11 AM
  5. Probelms with UPS XML shipping mod: Call-time pass-by-reference has been deprecated
    By letsconservenow.com in forum Addon Shipping Modules
    Replies: 0
    Last Post: 29 May 2009, 07:54 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