rkeane85257 Posted July 2, 2010 Posted July 2, 2010 Hello, When a user attempts to send us an email thru "Contact US" the screen comes up as normal. When the user sends the message to us they get on their screen: Warning: Cannot modify header information - headers already sent by (output started at /home/needlegu/public_html/includes/languages/english/contact_us.php:1) in /home/needlegu/public_html/includes/functions/general.php on line 29 We do receive the customers email, but the above message is being sent to them after a email has been sent. Thanks in advance for your help. Ron
germ Posted July 3, 2010 Posted July 3, 2010 Headers Already Sent Click the link above for an explanation. The problem is in /includes/languages/english/contact_us.php (line 1) The opening PHP tag: <?php MUST be at the very beginning of the file, no blank lines or spaces or other characters (seen or unseen) preceding it. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
rkeane85257 Posted July 4, 2010 Author Posted July 4, 2010 Headers Already Sent Click the link above for an explanation. The problem is in /includes/languages/english/contact_us.php (line 1) The opening PHP tag: <?php MUST be at the very beginning of the file, no blank lines or spaces or other characters (seen or unseen) preceding it.
rkeane85257 Posted July 4, 2010 Author Posted July 4, 2010 The contact us file is listed below. It appears to be correct. I am still getting the error: Warning: Cannot modify header information - headers already sent by (output started at /home/needlegu/public_html/includes/languages/english/contact_us.php:1) in /home/needlegu/public_html/includes/functions/general.php on line 29 Thanks. Ron <?php /* $Id: contact_us.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('HEADING_TITLE', 'Contact Us'); define('NAVBAR_TITLE', 'Contact Us'); define('TEXT_SUCCESS', 'Your enquiry has been successfully sent to the Store Owner.'); define('EMAIL_SUBJECT', 'Enquiry from ' . STORE_NAME); define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Enquiry:'); ?>
germ Posted July 4, 2010 Posted July 4, 2010 If it's not "whitespaces" it must be this: click me Those are the only two reasons for the error. Unless you want to email me the file, I can't fix it for you. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.