Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: usort(): Invalid comparison function. in /home/ushddire/public_html/cart/catalog/includes/modules/shipping/upsxml.php on line 243


diaswebdesign

Recommended Posts

I'm getting the following warning during the checkout process when the freight is calculating using upsxml

 

Warning: usort(): Invalid comparison function. in /home/ushddire/public_html/cart/catalog/includes/modules/shipping/upsxml.php on line 243

 

Has any one else ran into this?

 

 

Thanks Shawn

Link to comment
Share on other sites

  • 2 months later...
I'm getting the following warning during the checkout process when the freight is calculating using upsxml

 

Warning: usort(): Invalid comparison function. in /home/ushddire/public_html/cart/catalog/includes/modules/shipping/upsxml.php on line 243

 

Has any one else ran into this?

Thanks Shawn

 

Shawn,

I'm not sure if you have already found the answer to this question, but I stumbled upon this post earlier today.

 

in catalog/includes/modules/shipping/upsxml.php

 

Change line 243:

 

CODE

usort($productsArray, $this->ready_to_shipCmp);

 

to:

 

CODE

usort($productsArray, ready_to_shipCmp);

(like line 230).

 

The original post can be found here:

 

UPS XML 1.24 Warning: usort

 

 

-matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...