biow0lf / evedev-kb

Automatically exported from code.google.com/p/evedev-kb
1 stars 0 forks source link

"Headers already sent" warning #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
EDK 3.0.8

Jun  7 21:04:55 jita apache2: PHP Warning:  Cannot modify header information - 
headers already sent by (output started at 
/var/www/eve-primary.com/kb/mods/signature_generator/sig.php:66) in 
/var/www/eve-primary.com/kb/common/includes/class.cache.php on line 187

It seems the signature mod is sending out headers and then data before this 
code is executed.  One way to prevent this is to encapsulate lines 181 through 
187 with a 

if (!headers_sent()) { ... }

Original issue reported on code.google.com by cvwe...@gmail.com on 7 Jun 2010 at 9:10

GoogleCodeExporter commented 9 years ago
Were there any more errors? That message is usually only seen when an error 
message is sent first.

I've changed the sig class and thumb class in 3.1 to check for any output using 
headers_sent and and ob wrapper.

I'm marking this as fixed since I made changes for 3.1 but I don't intend to 
change 3.0 since this only happens when a problem has already occurred.

Original comment by kovellia on 10 Jun 2010 at 2:01