Someone makes an online contribution, the payment goes through, but an error pops up on the screen saying 'Failed to update contribution in database'. If I look at contributions, the status for the contribution is 'Pending (Incomplete transaction)'. The error occurs from a call to completeTransaction() in Confirm.php.
I turned on debugging and got a traceback, but it doesn't tell me any more than I have typed here. How can I find out why the update to the database is failing?