Re: error codes for shipping_estimator.php
Quote:
Originally Posted by
vandiermen
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
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
[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
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
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
Re: error codes for shipping_estimator.php
Quote:
Originally Posted by
vanhorn_s
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.
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 = '';
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;