Zen Cart Logo
Forums / General Questions / Cannot modify header information - headers already sent by hebrew.php:1

Cannot modify header information - headers already sent by hebrew.php:1

Views: 1,470

Results 1 to 6 of 6
12 Feb 2012, 11:14 PM
#1
gotyed avatar

gotyed

New Zenner

Join Date:
Jan 2012
Posts:
65
Plugin Contributions:
0

Cannot modify header information - headers already sent by hebrew.php:1

Hello,

I read a lot on the forums, while trying to solve my problem with the Hebrew language.

I'm getting a blank page as soon as I switch to Hebrew from another language.

Here is the debugger message:

[12-Feb-2012 14:41:53] PHP Warning:  Cannot modify header information - headers already sent by (output started at /public_html/includes/languages/hebrew.php:1) in /public_html/includes/init_includes/init_templates.php on line 78
[12-Feb-2012 14:41:53] PHP Warning:  Cannot modify header information - headers already sent by (output started at /public_html/includes/languages/hebrew.php:1) in /public_html/includes/functions/functions_general.php on line 45

I know I should look just in the Hebrew.php file.
There are no syntax problems on the first line.

From what I've read, it must be something about charset and encoding methods.

I tried to play with it for a little while but nothing helped (encoding without BOM, tried to change the charset to "define('CHARSET', 'iso-8859-1');" and the @setlocale to 'en_US.ISO_8859-1' etc)

I tried to read the following tutorial, but without success.
https://www.zen-cart.com/tutorials/index.php?article=87

Does anyone knows what to do?

Thanks !!!

14 Feb 2012, 2:30 AM
#2
gotyed avatar

gotyed

New Zenner

Join Date:
Jan 2012
Posts:
65
Plugin Contributions:
0

Re: Cannot modify header information - headers already sent by hebrew.php:1

Sorry to bump the thread, but I know someone must have the answer! I really think it's something about encoding, just too bad I have know idea what to do...

Thank you!!

15 Feb 2012, 6:55 PM
#3
gotyed avatar

gotyed

New Zenner

Join Date:
Jan 2012
Posts:
65
Plugin Contributions:
0

Re: Cannot modify header information - headers already sent by hebrew.php:1

please guys, last try, anyone knows a way to pass the blank page?
thanks

15 Feb 2012, 7:38 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Cannot modify header information - headers already sent by hebrew.php:1

It does indeed sound like you've got hidden BOM characters at the beginning of the file.

But, I've no experience with Hebrew and can't offer much help with that.

15 Feb 2012, 11:09 PM
#5
gotyed avatar

gotyed

New Zenner

Join Date:
Jan 2012
Posts:
65
Plugin Contributions:
0

Re: Cannot modify header information - headers already sent by hebrew.php:1

Thank for your answer Dr,

Well, from what I understand, the files which the debugger mention after the hebrew.php:1, is not actually part of the problem.

I did converted with my Notepad++ the Hebrew.php file to remove the BOM, but not on the other files.

So I guess it's not the BOM, but I really think there is somewhere a trick with the UTF-8 and Western characters I didn't find.

Thanks

18 Feb 2012, 9:20 PM
#6
gotyed avatar

gotyed

New Zenner

Join Date:
Jan 2012
Posts:
65
Plugin Contributions:
0

Re: Cannot modify header information - headers already sent by hebrew.php:1

Should I change all the languages to western as well? maybe in the admin folders too? or it's not related?