Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    help question Warning: Creating default object from empty value in shipping_estimator.php

    I have been getting myDEBUG log files for a long long time with the following errors:

    Inside is this message
    PHP Code:
    PHP Warning:  Creating default object from empty value in ....../includes/modules/shipping_estimator.php on line 235 
    Line 235:
    PHP Code:
          $order->delivery = array(//'postcode' => '', 
    Not sure why that is commented out..

    Sometimes the error changes to:
    PHP Code:
    PHP Warning:  Creating default object from empty value in ..../includes/modules/shipping_estimator.php on line 183 
    Line 183
    PHP Code:
          $order->delivery = array('postcode' => $zip_code
    I don't see any evidence that the file has been altered. I have a backup from 2011 and the file matches.
    I don't have the original source packet to compare against and the link to old Zen Cart versions on the zen-cart site is not working

    Anyone have an idea as to what might be the source of this error?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Warning: Creating default object from empty value in shipping_estimator.php

    Considering still using ZC 1.3.9, it might be that the PHP version has been updated beyond the capacity of the store's code. Suggestion would be to upgrade to the latest ZC (ZC 1.5.5 is currently available).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: Warning: Creating default object from empty value in shipping_estimator.php

    An upgrade is planned for the summer.
    But was hoping for some patch for now

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Warning: Creating default object from empty value in shipping_estimator.php

    Quote Originally Posted by split63 View Post
    An upgrade is planned for the summer.
    But was hoping for some patch for now
    Well, first, what is the current version of php applied to ZC and other such settings? (admin upper right, version)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: Warning: Creating default object from empty value in shipping_estimator.php

    (You are presently using: v1.3.9h)
    PHP Version 5.4.19
    Only using USPS and FedEx shipping modules

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Warning: Creating default object from empty value in shipping_estimator.php

    There have been numerous changes to the Zen Cart core code in the 5.5 years since Zen Cart 1.3.9h's release (2010-10-27) and the debug-log you're reporting is just the proverbial "tip of the iceberg".

    My suggestion, since you've got the upgrade planned for the summer, is to periodically check your store's /cache folder for additional debug-logs just in case something else crops up in the interim.

 

 

Similar Threads

  1. Replies: 20
    Last Post: 7 Dec 2014, 11:29 AM
  2. Replies: 10
    Last Post: 6 Sep 2014, 02:55 AM
  3. v151 "PHP Warning: Creating default object from empty value" what is this?
    By gsmsalers in forum General Questions
    Replies: 3
    Last Post: 9 May 2014, 06:54 PM
  4. Replies: 3
    Last Post: 26 Mar 2014, 07:35 PM
  5. Replies: 0
    Last Post: 27 Sep 2012, 11:57 PM

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