
Originally Posted by
RodG
IMPORTANT NOTICE. ozpost v1.0.2 has a bug that is affecting a number of users/installations (but not all).
If you have been having problems obtaining shipping quotes from around 4th June 2010 there are two solutions.
1. Upgrade to the latest ozpost module (currently v2.0.6)
2. Make the following changes to the file /includes/modules/shipping/ozpost.php
Line 338 (or thereabouts) reads // Server query string // (or similar)
Immediately after this insert the following line:
$HOST= str_replace(" ", "+", $HOST) ;
Then change the line after from:
$qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth& length=$parcellength&value=$ordervalue&flags=$flags&$method=$method&host=$HOST&v ersion=$VERSION") ;
To:
$qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth& length=$parcellength&value=$ordervalue&flags=$flags &host=$HOST&version=$VERSION") ;
(Specifically, you will be deleting "&$method=$method" from the line). Not only is '$method' not used/required here, but it is syntaxually incorrect).
Resave the file, and all should work again.
To the best of my knowledge no other versions are affected.
Cheers
Rod