Results 1 to 7 of 7
  1. #1
    Join Date
    May 2010
    Location
    Texas
    Posts
    393
    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,733
    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
    393
    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,733
    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
    393
    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
    12,491
    Plugin Contributions
    88

    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.

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

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

    There were a LOT of files that had to be touched for PHP 5.4 compatibility, so "patching" v139 to work on PHP 5.4 is not practical. It's almost the same amount of work as an upgrade. So, do an upgrade. ;)
    .

    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. 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

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