I had a similar error a while back which was being caused by the way a discount code was being implemented and Ray fixed it as follows (the line numbers may be different for you):
On line 60 of confirm.php change "Price" to "TruePrice" and do the same on line 109 of pp_confirm.php.
Might be worth a try!