Please attach a zipped copy of the confirm.php page giving the error. It sounds like the issue is that the shopping cart include files may be in the wrong position in the code and needs to be moved up on the page. If you attach a copy of the page I can be more specific and reference line numbers.