Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

UPSXML version 1_4_0_1 has a problem

Loi Han

Recommended Posts

I have installed UPSXML version 1-4-0-1 on Oscommerce 2.3.4, everything is working fine except there is a line on top of my website:

Deprecated: Assigning the return value of new by reference is deprecated in /xxxx.com /includes/classes/xml_5.php on line 25


 24   function & XML unserialize(&$xml){

 25  $xml_parser=&new XML();

 26  $data=&$xml_parser->parse($xml);

 27 $xml_parser->destruct();

 28 return $data:


Any one help please.

Link to comment
Share on other sites

function & XML_unserialize(&$xml){
$xml_parser = new XML();
$data = $xml_parser->parse($xml);
 return $data;




To improve is to change; to be perfect is to change often.


Link to comment
Share on other sites

the message has been gone but UPS sent me an error:

PHP error_log message:

"UPSXML TimeIn Transit Error: 270014: Invalid Shipment Contents Currency experienced by customer with id 3 on 2014-08-18 23:41:26"

Any comments?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...