Yes, I did try the code for turning on error reporting and it did not report any errors. so I removed it.
Further to your reply,
I have changed the code 1090 - 1092 as per your suggestion and the result is still the same.
The cart does not empty and it does not index on to checkout_success.php.
What next ?