Forums / General Questions / Headers already sent in Debug

Headers already sent in Debug

Views: 589

Results 1 to 4 of 4
15 Oct 2011, 3:04 PM
#1
incircolo avatar

incircolo

New Zenner

Join Date:
Aug 2009
Posts:
50
Plugin Contributions:
0

Headers already sent in Debug

I have a lot of the following message in debug file
PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0

version 1.3.9h

Why is not a file defined and i see "Unknown" ?

PS.
It is an admin related warning

15 Oct 2011, 4:08 PM
#2
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Headers already sent in Debug

Did it show which file has been sent? Mostly its to do with the end of a file that ends with ?> with spaces after.

here is an article to help you solve your problem.

https://www.zen-cart.com/tutorials/index.php?article=87

15 Oct 2011, 4:46 PM
#3
incircolo avatar

incircolo

New Zenner

Join Date:
Aug 2009
Posts:
50
Plugin Contributions:
0

Re: Headers already sent in Debug

Thanks
I've already read it.
The problem is that there is no file, but "Unknown on line 0"

17 Oct 2011, 3:01 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Headers already sent in Debug

When did this suddenly start happening? How might that be significant?

"Unknown on line 0" is used whenever the PHP engine is encountering a problem that's triggered by something for which it can't identify the filename. That might be a server configuration issue, or a compiled PHP library component. Those would be things your host would have to fix.
It might be triggered by using encrypted or encoded PHP scripts / addons. So, if you've added one of those recently then you'll need to sort that problem out with the author you purchased the addon from.

It might not (and quite likely does not) have nothing to with Zen Cart core code at all. If it's caused by files added to your Zen Cart files/folders, either by you or maliciously by an intruder, you can at least check to see whether something unexpected exists by doing a comparison: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

And if you do find stuff on your server that you didn't put there or don't expect to see there, then you should really inspect everything thoroughly: http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks

You may find it necessary to engage your hosting company to determine the actual cause of the error.

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