-- url of the page with the problem -- :
albertatacticalrifle.com
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- Error-message(debug-mod must be tuned on) -- : Error while sending XML to CANADA POST. Error code: -5000. Message: XML parsing error.
After HS 2.6.0 update checkout stopped working with the error:
Error while sending XML to CANADA POST. Error code: -5000. Message: XML parsing error.
After examining the code I found the reason. It's a CanadaPost fault as it doesn't parse a correctly formed XML. It doesn't parse correctly the line
<description></description>
or
or an XML without the field at all.
The only way it parses is a space inside the XML tag
<description> </description>
Before (2.5.0) In the HS CP plugin there was a space in the code. In the latest version there is no.
The previous plugin version:
Now:
So I just added a space to the
line 576 in
plugins/hikashopshipping/canadapost/canadapost.php
It was
'<description>' . $data['name'] . '</description>';
It became
'<description> ' . $data['name'] . '</description>';
P.S. TTTT, last at least 2 updates kilied our web-site checkout process. Always the problems because of the CP plugin. My boss is very angry and says not to update as updates kill the shop. I undestand, that staying non-updated is not a way out and would cause huge problems in the future. But damn, every HS update is a great stress fro us causing at least a couple of days web-site outage till the bugs are fixed. I beg you to pay more attention to it.