Invalid JSON - Fatal error: Cannot use object of type carrito as array in

Invalid JSON - Fatal error: Cannot use object of type carrito as array in

Dear Friends,

I've already checked a long list of details and can't find the solution.

I have a website hosted on two different servers, with the same exactly OS and PHP version, while on one host the script works without any issue, on the other host I get the following error:


"Invalid JSON: <br />
<b>Fatal error</b>:  Cannot use object of type carrito as array in <b>/home/username/public_html/lib/class/cart.class.php</b> on line <b>186</b><br />"

What could it be?

Any help will be much appreciated...
D. Duarte