Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Debug messages showing on checkout shipping page ...


RobC1962

Recommended Posts

Posted

Hi All,

I have a problem with a debug message showing on my checkout_shipping page.

If I set the package tare weight to anything less than 1 the message as follows appears: -

 

DEBUG

Ship Weight: '0.11'

Zones Table: '.1'

Box Weight: '0.05'

 

DEBUG

Ship Weight: '0.11'

Zones Table: '.25'

Box Weight: '0.05'

 

This ONLY happens if the tare weight in Admin-Configuration-Shipping/Packaging-Package Tare Weight option.

 

If I set it to anything other than 1 or above ... phhht! error.

I have looked for an option to turn off debugging, but there is nothing I can immediately see. I have no option in my Admin pages anywhere to turn off debugging.

Any help will be greatly appreciated before I do a complete reinstall of OSC.

 

Thanks in advance,

Rob.

Posted

Looks like it will be in /includes/modules/shipping/zones.php

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Hi,

Thanks for the reply.

I have had a good look at that particular file and found no reference to debugging. I have trawled through loads of files even remotely connected to the shipping and cannot find anything to stop the debug message. I am wondering if it is perhaps an SQL corruption somewhere that I need to trace?

Posted

What shipping modules do you have installed?

 

Other file is checkout_shipping.php.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Hi,

I have looked in that one as well. Nothing mentioning debug ... so I did a clean install and all is ok. I can put in any packaging tare weight and all is good. In a way, that makes things worse as I have learnt nothing. Grrrrrr! And I bet now the error will never return! :blush:

Many thanks for your help though.

Cheers, Rob.

Posted

echo 'Ship Weight: \''.$shipping_weight.'\'<br>';

echo 'Zones Table: \''.$zones_table[$i].'\'<br>';

echo 'Box Weight: \''.SHIPPING_BOX_WEIGHT.'\'<br>';

 

 

found the problem. and 'echo'. :P

Posted

Which file?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

it was in the RM Shipping Module Version 2.06 .. Royal Mail 2nd Class Recorded - rmsecondrec.php - starting at line 174 and ending at line 177.

 

174 - echo '<br><b>DEBUG</b><br>';

175 - echo 'Ship Weight: \''.$shipping_weight.'\'<br>';

176 - echo 'Zones Table: \''.$zones_table[$i].'\'<br>';

177 - echo 'Box Weight: \''.SHIPPING_BOX_WEIGHT.'\'<br>';

 

once found, simply removing those four lines stopped the messages - or alternatively uninstalling the option for 2nd class recorded.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...