Results 1 to 4 of 4
  1. #1

    Default [Dup] Warning: Creating default object from empty value in shipping_estimator.php 107

    I have warnings in my cache that say
    "[21-Jan-2012 16:36:57] PHP Warning: Creating default object from empty value in C:\wamp\www\includes\modules\shipping_estimator.php on line 107"

    Every time i access the checkoput page it puts an entry in the cache. Is there a way to prevent this because that fills up with a lot of entries real quick. ?

    Thank you

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

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

    Xampp 1.81, PHP 5.4.7

    I got the warning for the previous section, when the user is not logged in.

    I seem to have stopped the warning by adding this:
    $country_info = $_SESSION['country_info'];
    require(DIR_WS_CLASSES . 'order.php');$order = new order;//steve for PHP warning

    $order->delivery = array('postcode' => $zip_code,
    but this really needs to be addressed by the devs, I'm not informed enough to say this is a fix.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  3. #3
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,018
    Plugin Contributions
    61

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

    Seeing this also Zen 1.5.1 & 1.5.2

    PHP Version: 5.4.26 (Zend: 2.4.0)
    Default file, no changes
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,018
    Plugin Contributions
    61

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

    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 7 Sep 2016, 03:42 PM
  2. v139h Warning: Creating default object from empty value in shipping_estimator.php
    By split63 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 30 Apr 2016, 08:00 PM
  3. Replies: 20
    Last Post: 7 Dec 2014, 11:29 AM
  4. Replies: 10
    Last Post: 6 Sep 2014, 02:55 AM
  5. 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

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