Zen Cart Logo
Forums / General Questions / newbie: headers already sent (from unmodified page)

newbie: headers already sent (from unmodified page)

Locked

Views: 698

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Jun 2009, 9:18 AM
#1
adbcooper avatar

adbcooper

New Zenner

Join Date:
Jun 2009
Posts:
2
Plugin Contributions:
0

newbie: headers already sent (from unmodified page)

Well I have been working on a site for over a year now... a good part of that being playing with different carts. I have settled on Zen Cart because I am finding that I can get my head around it more than the others I have tried.

There have been problems but one way or another I have worked through them... by persistence or by internet searches.

Anyway I now have one that has me stumped. Namely I am getting the headers already sent error when the zen_redirect function is being executed. Needless to say that it fails and I get a blank page.

This is occurring at step 2 of the check out process (after the Delivery Information page). With debugging I have tracked it down to failing at line 156 of includes/modules/pages/checkout_shipping/header_php.php. That is calling the zen_redirect function. The error I am getting is because of the require of order.php (at line 72). Specifically the error is:
[25-Jun-2009 20:49:01] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/judogear.jp/shop/includes/classes/order.php:1) in /var/www/judogear.jp/shop/includes/functions/functions_general.php on line 44

I have read the troubleshooting wiki and looked for the errors outlined there causing this problem but order.php is clean (and never been edited or looked by me prior to this). The only thing on line 1 is <?php with neither leading or trailing lines or spaces. I have as best I can gone through the required files loaded prior to order.php from the site index.php and as best I can ascertain there are no issues with them either.

I am using version 1.38 of zen cart and have the Japanese language extensions (by Koi) install.

Any help would be greatly appreciated.

Thank you
Brent Cooper

25 Jun 2009, 12:31 PM
#2
adbcooper avatar

adbcooper

New Zenner

Join Date:
Jun 2009
Posts:
2
Plugin Contributions:
0

Re: newbie: headers already sent (from unmodified page)

Well, I haven't found what was causing the issue although I wonder if it had anything to do with the encoding (using utf-8) but I did find a workaround. That was to place and ob_start() before and ob_end_flush() after the foreach ($directory_array as $value) loop in the root index.php (I figured that putting it there would also prevent other pages having the same problem). Seems to work fine now although I would love to know a fix rather than just a workaround.

Bent

28 Jun 2009, 6:42 AM
#3
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Re: newbie: headers already sent (from unmodified page)

[27-Jun-2009 18:25:24] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/r6f9jp82/public_html/zencart1/includes/languages/english.php:1401) in /home/r6f9jp82/public_html/zencart1/includes/init_includes/init_templates.php on line 78

My last two new category pages that I created come up BLANK and I read somewhere here that I better look into admin cache directory for answers.

I fetched the above all right but I don't have any idea what it tries to tell me.

Can any one interprete it for me?

Why the header was to be modified from the beginning?
If header already sent by..., why the modifying problem?

The above warning is not much help to me....

Thanks in advance...

http://www.phoup.com/zencart1/

:(

28 Jun 2009, 9:10 PM
#4
youshine avatar

youshine

New Zenner

Join Date:
Jun 2009
Posts:
42
Plugin Contributions:
0

Re: newbie: headers already sent (from unmodified page)

Dear all,

I was able to fix my problem by replacing involved files (english.php & ini_template.php) with untamppered ones.

Please disregard my request for interpretation.