Forums / Installing on a Linux/Unix Server / Headers already sent

Headers already sent

Views: 1,246

Results 1 to 7 of 7
4 May 2011, 1:11 PM
#1
teltel avatar

teltel

New Zenner

Join Date:
Jan 2011
Posts:
2
Plugin Contributions:
0

Headers already sent

My 1.3.8a zen cart installation has a problem. It works fine until you try to check out an order & reach the /index.php?main_page=checkout_payment page, the page seems to hang (blank page) & I can see the browser stop/refresh icon (browser is Chrome) sort of looping round.

I've installed the debug utility & it mentions the following files in the txt file detailed below. The sites been working fine for ages & I've not edited either of the files below. I realise that these sort of errors can be caused by extra space at the end of the files, but I've not carried out any editing of these files.

I have edited both of the configure.php files & will be replacing these as my next step, but I'd love some advice or pointers as to what could be stopping the cart from processing the order. If I view the source of "index.php?main_page=checkout_payment" the page has only half loaded too.

[04-May-2011 13:34:43] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home2/tortoise/public_html/store/includes/languages/english/Tortoisedirect/meta_tags.php:1) in /home2/tortoise/public_html/store/includes/init_includes/init_templates.php on line 78
[04-May-2011 13:34:43] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home2/tortoise/public_html/store/includes/languages/english/Tortoisedirect/meta_tags.php:1) in /home2/tortoise/public_html/store/includes/init_includes/init_templates.php on line 78
[04-May-2011 13:34:43] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home2/tortoise/public_html/store/includes/languages/english/Tortoisedirect/meta_tags.php:1) in /home2/tortoise/public_html/store/includes/init_includes/init_templates.php on line 78
4 May 2011, 1:16 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Headers already sent

If you scroll to the bottom of the page you'll find other threads that already address this type of problem. And your warning message tells you the file and even the line within that file where your problem is located.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

4 May 2011, 1:16 PM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Headers already sent

Look for blank space(s) or blank line(s) after the closing php tag ?> in the file:

includes/languages/english/Tortoisedirect/meta_tags.php

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 May 2011, 1:41 PM
#4
teltel avatar

teltel

New Zenner

Join Date:
Jan 2011
Posts:
2
Plugin Contributions:
0

Re: Headers already sent

I'm grateful for your help, but could you offer an explanation/guess as to why these files would need editing when I've not been anywhere near them?

4 May 2011, 1:44 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Headers already sent

Most likely a problem during the upload to your site. I suspect that the named file is missing the first character.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

4 May 2011, 1:48 PM
#6
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Headers already sent

could you offer an explanation/guess as to why these files would need editing when I've not been anywhere near them?

Well, files which previously worked must either have been edited or else restored from a backup (either by you or your hosting company).

A highly possible explanation, given that you are using the out-of-date 1.3.8a version, is that the site may have been hacked and the files modified by the hacker.

Vger

4 May 2011, 4:39 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Headers already sent

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.