ok I removed it. does it need to be on any other page? i am pasting the latest error in PM.
the workflow is:
checkout.-address.php (only saves sessions, nothing else)
checkout-paypal.php (for paypal express) or checkout.confirm.php (for local card transactions, which I am yet to add in)
attaching the files in case you want to see them.