I recently moved my site to a different host, and I keep getting errors showing up in the cache folder.
redsautorehab.com running zencart 1.5.0 I did not have these errors before the migration.
[05-Oct-2013 07:44:09 America/Denver] PHP Warning: Creating default object from empty value in /home2/redsauto/public_html/includes/modules/shipping_estimator.php on line 107
[05-Oct-2013 07:42:53 America/Denver] PHP Warning: Creating default object from empty value in /home2/redsauto/public_html/includes/modules/shipping_estimator.php on line 92
[05-Oct-2013 07:42:22 America/Denver] PHP Warning: Creating default object from empty value in /home2/redsauto/public_html/includes/modules/shipping_estimator.php on line 117
I have tested the shipping estimator several times, and I can't see anything wrong.
Lines 92-117:
Code:
$order->delivery = array('postcode' => $zip_code,
'country' => array('id' => $_POST['zone_country_id'], 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' => $country_info['countries_iso_code_3']),
'country_id' => $_POST['zone_country_id'],
//add state zone_id
'zone_id' => $state_zone_id,
'format_id' => zen_get_address_format_id($_POST['zone_country_id']));
$_SESSION['cart_country_id'] = $_POST['zone_country_id'];
//add state zone_id
$_SESSION['cart_zone'] = $state_zone_id;
$_SESSION['cart_zip_code'] = $zip_code;
} elseif ($_SESSION['cart_country_id']){
// session is available
$_SESSION['country_info'] = zen_get_countries($_SESSION['cart_country_id'],true);
$country_info = $_SESSION['country_info'];
// fix here - check for error on $cart_country_id
$order->delivery = array('postcode' => $_SESSION['cart_zip_code'],
'country' => array('id' => $_SESSION['cart_country_id'], 'title' => $country_info['countries_name'], 'iso_code_2' => $country_info['countries_iso_code_2'], 'iso_code_3' => $country_info['countries_iso_code_3']),
'country_id' => $_SESSION['cart_country_id'],
'zone_id' => $state_zone_id,
'format_id' => zen_get_address_format_id($_SESSION['cart_country_id']));
} else {
// first timer
$_SESSION['cart_country_id'] = STORE_COUNTRY;
$_SESSION['country_info'] = zen_get_countries(STORE_COUNTRY,true);
$country_info = $_SESSION['country_info'];
$order->delivery = array(//'postcode' => '',
Bookmarks