I had a similar problem when I updated from 139d to 139h
An addon I was using on this site had a pre 139g version of
\includes\classes\shopping_cart.php in it that had not been updated.
I suspect one of your custom scripts uses this file and has not been updated.
As a guess check the "Free Gifts" mod first for this file
Bookmarks