Jump to content



Photo
- - - - -

Warning: Cannot Modify Header Info - Center Shop question


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1   Helder

Helder
  • Members
  • 36 posts

Posted 24 May 2003 - 06:19

when i click on my account, or checkout or try to create a new account i get this as a error message


Warning: Cannot modify header information - headers already sent by (output started at /home/xhelderx/public_html/osCommerce/includes/languages/english/center_shop.php:42) in /home/xhelderx/public_html/osCommerce/includes/functions/general.php on line 23

does anyone know what this means or could possibly help me out? Thank you for your time,

Helder
-are you sure this is legal?

#2   hankfrid

hankfrid
  • Members
  • 170 posts

Posted 24 May 2003 - 07:35

Do you actually have a file that is center_shop.php in your languages/english folder? If you do, then it normally means that in that file, either before the <?php or after the ?> at the end of the file, you have whitespace. This causes trouble.

It is normally at the bottom of the file (after the "?>") and is caused by using some non-standard text editors to change these files.

Put your cursor just after the ?> at the end and see if you use the arrow keys and your cursor moves past the > then you have whitespace. Just put your cursor after the > again and hold the delete key down until all the whitespace is gone. Then save the file and try your transaction again.

HankFrid
If I build it...they will come.
If I don't try to build it.....I will never know!

#3   AG

AG
  • Members
  • 65 posts

Posted 24 May 2003 - 09:26

I'm having the same problem. :cry:
I get the following message and cannot login from english page. Other language is OK so db is working.

---
Warning: Cannot modify header information - headers already sent by (output started at /home/ag/public_html/osCommerce/includes/languages/english.php:339) in /home/ag/public_html/osCommerce/login.php on line 43

Warning: Cannot modify header information - headers already sent by (output started at /home/ag/public_html/osCommerce/includes/languages/english.php:339) in /home/ag/public_html/osCommerce/includes/functions/general.php on line 23
---

I did check english.php, login.php and general.php and they have not white spaces.

Does anyone know where I should look please?

AG

#4   AG

AG
  • Members
  • 65 posts

Posted 24 May 2003 - 10:08

Thank you HankFrid for your helpful information.
I've sorted mine out!
extra new line at the end of ?> was my problem.
I can now log in /biggrin.gif' class='bbc_emoticon' alt=':D' />
Cheers!

AG

#5   Helder

Helder
  • Members
  • 36 posts

Posted 24 May 2003 - 20:49

That did the trick, thanks a lot Henry
-are you sure this is legal?