Results 1 to 10 of 14

Hybrid View

  1. #1
    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
    We have same problem after upgrading to server with php 5.4.20. we also use OzPost.
    Problem only for guests, no problem after logging in or in checkout.
    Code:
    [11-Oct-2013 01:55:25 Australia/Sydney] PHP Warning:  Creating default object from empty value in /home/bubsgr/public_html/includes/modules/shipping_estimator.php on line 92
    i don't think I can role back PHP on this server, and moving server is not be best option
    We also get a warning with latest Fast and Easy checkout which should be for a different post
    Although I'm not sure if these two problems are related, if they are, you've just saved me a lot of debugging :)

    You could try this (Found via google):

    In your php.ini change
    error_reporting = E_ALL
    to error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT If you don't have access to the php.ini, you can potentially put this in your .htaccess file:


    php_value error_reporting 30711 This is the E_ALL value (32767) and the removing the E_STRICT (2048) and E_NOTICE (8) values.

    If you don't have access to the .htaccess file or it's not enabled, you'll probably need to put this at the top of the PHP section of any script that gets loaded from a browser call:


    error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE); ----------------------------------------------

    All being well this should take care of the PHP warnings, and if it takes care of the "Problem only for guests" issue with Ozpost (Which I also assume only affects guests trying to obtain overseas quotes) then that will be icing on the cake.


    Feedback will be greatly appreciated.

    Cheers
    Rod

  2. #2
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: error codes for shipping_estimator.php

    still getting error

    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

    [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

    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


    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
    Last edited by vandiermen; 11 Oct 2013 at 01:57 PM.

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

 

 

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

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