PDA

View Full Version : Warning: Cannot modify header information


jdoane282989
04-25-2009, 12:28 PM
On testing the eCart with PayPal Payments Pro gateway, using credit card option I get this message on the confirm.php page:
Warning: Cannot modify header information - headers already sent by (output started at

/home/mtdeligh/public_html/simplegiftsnh/confirm.php:513) in /home/mtdeligh/public_html/simplegiftsnh/confirm.php on line 516

Line 513-516 of confirm.php
<?php
// WA eCart Redirect
if ($simpleGifts->redirStr != "") {
header("Location: ".$simpleGifts->redirStr);
}

The email confirmation is sent but the confirm page comes back again and when you confirm again it orders the same thing again! Also the cart never clears. Thanks for the help in advance.

John

johnlanglois
04-25-2009, 08:44 PM
Check to see if you have an extra space after the <?php or elsewhere on that line. Extra spaces get output and therefore your header begins at that point.

jdoane282989
04-26-2009, 06:09 AM
Your comment prompted me to check the code and I found an erroneous php closing tag just before line 513. I'm hoping that will do it!

Thanks very much for the tip.