sofaking Posted May 23, 2007 Posted May 23, 2007 Hi everyone, I think this program and suppost site is fantastic. I have the following error appearing when people try to use the contact us form: Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/d/f/dfsofaking.co.uk/htdocs/www/catalog/includes/languages/english/contact_us.php:50) in /data/members/paid/d/f/dfsofaking.co.uk/htdocs/www/catalog/includes/functions/general.php on line 33 Line 33 is header('Location: ' . $url); Anyone any ideas? Cheers, Michael
♥FWR Media Posted May 23, 2007 Posted May 23, 2007 There is probably some white space before the <?php at the very top of the page Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
sofaking Posted May 23, 2007 Author Posted May 23, 2007 There is probably some white space before the <?php at the very top of the page Thanks Robert, but there is no whitespace before the <?php in either the contact us or the general file any other ideas?
sofaking Posted May 23, 2007 Author Posted May 23, 2007 Thanks Robert, but there is no whitespace before the <?php in either the contact us or the general file any other ideas? I have taken off the white space at the end and now I get a black page after clicking the continue button......... ........... ........ it just gets stranger and stranger
♥FWR Media Posted May 23, 2007 Posted May 23, 2007 there is an error in contact_us.php which is sending output function tep_redirect($url) is trying to redirect the header but the header (read any html output) has already been sent via the error. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
sofaking Posted May 23, 2007 Author Posted May 23, 2007 there is an error in contact_us.php which is sending output function tep_redirect($url) is trying to redirect the header but the header (read any html output) has already been sent via the error. Thanks Again, This is the code from my contact us page: <?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<br> <table border="1" width="100%" id="table1"> <tr> <td><u>Sofa King (East Kilbride)</u><br> 62 Wilson Place<br> Nerston<br> East Kilbride<br> G74 4QD<br> <br> Tel. 01355 242100 </td> <td><u>Sofa King (Wishaw)</u><br> 11 Russell Street<br> <br> Wishaw<br> ML2 7AL<br> <br> Tel. 01698 352321<br> </td> </tr> <tr> <td colspan="2" align="center"><a href="mailto:[email protected]">[email protected]</a></td> </tr> </table><br> Or fill in the form below'); 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:'); ?> It would it have something to do with the table I have added at the top of the page? Cheers
♥FWR Media Posted May 23, 2007 Posted May 23, 2007 Couldn't see anything wrong tbh . . in case it's formatting try the below <?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<br> <table border="1" width="100%" id="table1"> <tr> <td><u>Sofa King (East Kilbride)</u><br> 62 Wilson Place<br> Nerston<br> East Kilbride<br> G74 4QD<br> <br> Tel. 01355 242100 </td> <td><u>Sofa King (Wishaw)</u><br> 11 Russell Street<br> <br> Wishaw<br> ML2 7AL<br> <br> Tel. 01698 352321<br> </td> </tr> <tr> <td colspan="2" align="center"><a href="mailto:[email protected]">[email protected]</a></td> </tr> </table><br> Or fill in the form below'); 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:'); ?> Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
sofaking Posted May 23, 2007 Author Posted May 23, 2007 Nope....lol still ending up with the blank page after clicking continue........... I might end up removing the form and just leave the email url.
sofaking Posted May 23, 2007 Author Posted May 23, 2007 Nope....lolstill ending up with the blank page after clicking continue........... I might end up removing the form and just leave the email url. YIPEE!!! :lol: Fixed it...... I had removed too many blank spaces from the general file. At the same time the My Account link was just popping up as a blank page too I decided to try and just copy over a fresh version of the general file and Voila.....its working again. Thanks for taking the time to look at this with me Robert!! Cheers, Michael
♥FWR Media Posted May 23, 2007 Posted May 23, 2007 Then it must be the defined variables .. HEADING_TITLE or STORE_NAME is your store live or quiet atm? If so you could add before the final ?> die(HEADING_TITLE . ' = ' . HEADING_TITLE . 'STORE_NAME = ' . STORE_NAME . '<br />'); and see what it outputs ### THIS WILL BREAK YOUR SHOP TEMPORARILY ### Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
sofaking Posted May 23, 2007 Author Posted May 23, 2007 Then it must be the defined variables .. HEADING_TITLE or STORE_NAME is your store live or quiet atm? If so you could add before the final ?> die(HEADING_TITLE . ' = ' . HEADING_TITLE . 'STORE_NAME = ' . STORE_NAME . '<br />'); and see what it outputs ### THIS WILL BREAK YOUR SHOP TEMPORARILY ### Thanks for the warning!!! it is live just now it produced two of the address tables :
sofaking Posted May 23, 2007 Author Posted May 23, 2007 I think it's the HEADING TITLE where mine runs into the table define('HEADING_TITLE', 'Contact Us<br> <table border="1" width="100%" id="table1"> <tr> <td><u>Sofa King (East Kilbride........
Fancyfang Posted July 14, 2007 Posted July 14, 2007 Hi everyone, I think this program and suppost site is fantastic. I have the following error appearing when people try to use the contact us form: Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/d/f/dfsofaking.co.uk/htdocs/www/catalog/includes/languages/english/contact_us.php:50) in /data/members/paid/d/f/dfsofaking.co.uk/htdocs/www/catalog/includes/functions/general.php on line 33 Line 33 is header('Location: ' . $url); Anyone any ideas? Cheers, Michael Hello, Michael, I couldn't open your website www.sofaking.org.uk Do i type it write?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.