1.5.5f PHP7.1 cliponearrings.net.au
Hi - I am getting the following myDEBUG error and am not sure what to do to fix it - I am not experiencing any symptoms on the site, well none that I am aware of anyway.
this is the line at and around #252 (in blue)Code:[09-Oct-2018 00:32:43 Australia/Melbourne] Request URI: /index.php?main_page=checkout_one, IP address: 124.168.54.51 #1 zones->quote() called at [/home/cliponearrings/public_html/includes/classes/shipping.php:171] #2 shipping->quote() called at [/home/cliponearrings/public_html/includes/modules/pages/checkout_one/header_php.php:200] #3 require(/home/cliponearrings/public_html/includes/modules/pages/checkout_one/header_php.php) called at [/home/cliponearrings/public_html/index.php:36] [09-Oct-2018 00:32:43 Australia/Melbourne] PHP Warning: A non-numeric value encountered in /home/cliponearrings/public_html/includes/modules/shipping/zones.php on line 252
my admin/shipping settings are 'zone' and 'weight' with no handling fees.Code:if ($shipping == -1) { $shipping_cost = 0; $shipping_method = MODULE_SHIPPING_ZONES_UNDEFINED_RATE; } else { switch (MODULE_SHIPPING_ZONES_METHOD) { case (MODULE_SHIPPING_ZONES_METHOD == 'Weight'): // charge per box when done by Weight // Handling fee per box or order if (constant('MODULE_SHIPPING_ZONES_HANDLING_METHOD_' . $dest_zone) == 'Box') { $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone) * $shipping_num_boxes; } else { $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone); } break; case (MODULE_SHIPPING_ZONES_METHOD == 'Price'): // don't charge per box when done by Price $shipping_cost = ($shipping) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone); break; case (MODULE_SHIPPING_ZONES_METHOD == 'Item'): // don't charge per box when done by Item $shipping_cost = ($shipping) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone); break; }
cheers,
Mike


Reply With Quote

