Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: error codes for shipping_estimator.php

    Quote Originally Posted by vandiermen View Post
    still getting error
    I think you probably mean that you are still getting TWO DIFFERENT errors (that may or may not be related. This is still under investigation).

    Quote Originally Posted by vandiermen View Post
    you may have a look at http://www.bubs2grubsknitting.com.au...ping_estimator

    initially everyone gets 'Flat Rate (Express Post) $14.00' before post code is entered, with this error
    This is ONE of your problems, and it could well be an ozpost related issue. (This is still under investigation).

    Quote Originally Posted by vandiermen View Post
    [11-Oct-2013 23:39:26 Australia/Sydney] PHP Warning: Creating default object from empty value in /home/bubsgr/public_html/includes/modules/shipping_estimator.php on line 107
    This is NOT an Ozpost related error. This is a PHP related error that has *nothing* to do with ozpost.
    /shipping_estimator.php is one of the core zencart files and ozpost doesn't make any changes to this file in any way.

    To fix this PHP related error please see the fix provided by 'robbie269'
    http://www.zen-cart.com/showthread.p...19#post1222019

    Again, this is NOT an ozpost error.

    Quote Originally Posted by vandiermen View Post
    then when postcode is entered it crashes, with this error
    [11-Oct-2013 23:39:34 Australia/Sydney] PHP Warning: Creating default object from empty value in /home/bubsgr/public_html/includes/modules/shipping_estimator.php on line 92
    This is a new one to me However, I've just looked at the code, and you should be able to apply the same fix mentioned in the linked post I just gave, however, you'll need to add the 'fix' code immediately before line#92

    Quote Originally Posted by vandiermen View Post
    I believe our php.ini is working because I started getting errors about using UTC then I added date.timezone and that was fixed. I tried adding php_value error_reporting 30711 to htaccess but crashed, i can try adding it the shipping estimator but I am not even sure what it is just now, i could look at it later
    These fixes are/were designed to stop the error reporting rather than fixing the actual errors (which shouldn't be causing any problems anyway). The fix that robbie269 has provided is fixing the cause of the error messages. In theory, these shouldn't be affecting the ozpost processing in any way (the flat rate problem), so please keep this in mind when proving further error reports. If you treat this as a single ozpost problem you will simply confuse yourself (and me). Especially me. I'm easy to confuse :)

    Cheers
    Rod

  2. #12
    Join Date
    Apr 2010
    Posts
    265
    Plugin Contributions
    1

    Default Re: error codes for shipping_estimator.php

    Quote Originally Posted by vanhorn_s View Post
    I fixed it. I was running php 5.4 I had to roll it back to 5.2 to get rid of these errors, and to get stamps.com integration fixed.
    I need help fixing this now. My host just sent me an email telling me that php 5.2, and 5.3 will be phased out DEC. 1st.

    I will also need to contact stamps.com again, and inform them that they need to make it php 5.4 compatible.

  3. #13
    Join Date
    Apr 2010
    Posts
    265
    Plugin Contributions
    1

    Default Re: error codes for shipping_estimator.php

    It looks like the way to eliminate this error, is to edit: includes/modules/shipping_estimator.php

    Add to line 46:
    Code:
     require_once('includes/classes/http_client.php'); // shipping in basket
    //PHP5.4 fix
    $order = new stdClass();
    /*
    // moved below and altered to include Tare
      // totals info
      $totalsDisplay = '';

  4. #14
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    Default Re: error codes for shipping_estimator.php

    I am experience this PHP warning on my ZC 1.5.1

    After the ZC 1.5.3 released, I opne the ZC 1.5.3 and ZC 1.5.1 files there
    /includes/modules/shipping_estimator.php
    with WinMerge to compare side by side

    Find the fix is

    PHP Code:
    On Line 88
    From
    // user not logged in !
    Change To
    // user not logged in !
    require(DIR_WS_CLASSES 'order.php');
        
    $order = new order

    Add the Coding after Line 88
    PHP Code:
    // user not logged in !
    require(DIR_WS_CLASSES 'order.php');
        
    $order = new order
    Last edited by explorer1979; 4 Aug 2014 at 11:21 AM.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. 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
  2. Replies: 3
    Last Post: 26 Mar 2014, 07:35 PM
  3. php error codes - has anyone come aross this?
    By jasperguy in forum General Questions
    Replies: 3
    Last Post: 21 Jan 2008, 06:49 PM
  4. Replies: 0
    Last Post: 22 Dec 2006, 10:43 AM
  5. Replies: 1
    Last Post: 12 Nov 2006, 05:10 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