PDA

View Full Version : Error with contact form


agmichaca
06-15-2009, 03:45 PM
I received this error if I combine PowerCMS with WAUE when i tried to send the contact form

Warning: Cannot modify header information - headers already sent by (output started at D:\inetpub\vhosts\finautos.com.mx\httpdocs\traslad os_al_aeropuerto.php:10) in D:\inetpub\vhosts\finautos.com.mx\httpdocs\traslad os_al_aeropuerto.php on line 20

Ray Borduin
06-16-2009, 07:11 AM
What is on line 10 and what is on line 20 of the page mentioned in the error. It may be something as simple as a blank line or space character on line 10 causing the issue. The solution is most likely to fix the problem on line 10 so that the error never occurs on line 20.

agmichaca
06-23-2009, 12:44 PM
line 8 to 23
<?php include "Connections/localhost.php"; ?>
<?php include "WA_CMS/WA_CMS.php"; ?>
<?php require_once("WA_Universal_Email/PEAR_Mail_using_SMTP_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if (($_SERVER["REQUEST_METHOD"] == "POST")) {
//WA Universal Email object="PEAR Mail using SMTP"
//Send Loop Once Per Entry
$RecipientEmail = "contacto@finautos.com.mx";include("WA_Universal_Email/WAUE_traslados_al_aeropuerto_1.php");

//Send Mail All Entries
if ("gracias_por_reservar.php"!="") {
header("Location: gracias_por_reservar.php");
}
}
?>


If I removed 8 and 9 works without a problem.

Ray Borduin
06-24-2009, 07:35 AM
OK. then the problem is the space at the end of:

<?php include "WA_CMS/WA_CMS.php"; ?>

on line 9... delete the space that appears at the end of that line and the error will go away.

agmichaca
06-24-2009, 09:08 AM
OK, the error was from copy/paste from CMS code generated. Now is working thankyou!