Zen Cart Logo
Forums / Bug Reports / [Dup] Warning: Creating default object from empty value in shipping_estimator.php 107

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

Locked

Views: 4,666

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Jan 2012, 6:43 PM
#1
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

[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

12 Nov 2012, 12:07 PM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

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

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.

26 Mar 2014, 6:33 PM
#3
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
39

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

Seeing this also Zen 1.5.1 & 1.5.2

PHP Version: 5.4.26 (Zend: 2.4.0)
Default file, no changes