View Full Version : Cant go to payment screen
Doug B
11-20-2006, 07:39 PM
Hi all, when I try to add a sponsored link, and go to the payment gateway (PayPal) I get the following waringin:
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/mydirectory.co.uk/public_html/purchase.php:21) in /home/sites/mydirectory.co.uk/public_html/purchase.php on line 28
Any ideas?
Thanks
Doug
classified
11-21-2006, 06:02 AM
You have some spaces before your php code. Remove the spaces from purchase.php. Usually it is a blank line or something like that before the start of the php. Before this "<?php" in the top of the file.
Doug B
11-21-2006, 03:18 PM
Hi, thanks for the reply.
No, no spaces, plus I havent altered the page sinse buying it so one would presume it arrives in the correct way/format?
<?php
/************************************************** *************************
*
* PROJECT: eSyndiCat Directory Software
* VERSION: 2.0 (Pro Release)
* LISENSE: OWN (http://www.esyndicat.com/license.html)
*
* This program is a commercial software and any kind of using
* it must agree to eSyndiCat License Agreement.
*
* This notice may not be removed from the code.
*
* Copyright 2005-2006 eSyndiCat Software Development Ltd.
* http://www.esyndicat.com/
*
************************************************** *************************/
/** requires common header file **/
require_once('header.php');
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';
echo '<html>';
echo '<head></head>';
echo '<body>';
if(!$_POST['id_link'] || !$_POST['plan'])
{
header('Location: error.php?error=666');
exit;
}
$total =& $gDirDb->getSponsoredPlanById($_POST['plan']);
$total = $total['cost'];
$description = $gDirLang[$plan['name']];
require_once("plugins/{$_POST['type']}/pre_{$_POST['type']}.php");
?>
<script type="text/javascript">
document.forms["check_out_form"].submit();
</script>
</body>
</html>
scott atkins
11-27-2006, 07:54 PM
i'm haveing the same problem. Can someone please help?
Dave Baker
11-27-2006, 08:32 PM
Please, check this article:
http://www.esyndicat.com/support/desk/knowledgebase/view/2.html
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.