I am seeing this error at the time of saving order only for a particular customer who is having large order history (around 300K past orders).
I have custom script to save the order programmatically.
The line I see problem is: $order->save();
$order->place();
$order->save(); // throwing error here
$orderId = $order->getIncrementId();
I looked into server questions/blogs for this and all saying increasing the php memory limit using;
php_value memory_limit
But that too doesn't works for me. I tried allocation 4GB to php memory but even than it fails.
Strange things is that only for particular customer.
Is there some problem with Magento API while saving order object?
Please advise.
Magento version: 1.4.2