After placing an order, it is not possible to add a product to cart. Magento keeps telling me : Cannot add the item to shopping cart.
Plus, if I try to reorder , I got an error :
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1";i:1;s:2954:"#0 C:\wamp\www\ronamagento\trunk\lib\Zend\Db\Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
If I log out then relog in, everything works fine until I place another order.
Any idea?
---------------------- EDIT --------------------------
The errors seems to come from sales/order/controllers/OrderController.php , in the reorder function at the $cart->save();
And the same code in Checkout/controllers/CartController.php in the add function
Seems like my cart object is broken or something.
---------------------- EDIT --------------------------
---------------------- EDIT #2 --------------------------
Well , if I comment the line $this->getQuote()->collectTotals(); in the save function of Checkout/model/cart.php it seems to work but doesn't show that the item has been added to my cart. Then I put back the line of code and everything works fine. Seems like something is wrong in collectTotals()...
---------------------- EDIT #2 --------------------------
Thanks!