Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Contact Us Page Error


sofaking

Recommended Posts

Posted

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

Posted

There is probably some white space before the <?php at the very top of the page

Posted
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?

Posted
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

Posted

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.

Posted
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

Posted

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:');
?>

Posted

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.

Posted
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.

 

 

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

Posted

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 ###

Posted
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 :

 

errorpage.jpg

Posted

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........

  • 1 month later...
Posted
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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...