williamleonard / obblm

Automatically exported from code.google.com/p/obblm
1 stars 0 forks source link

Race Class problems #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I narrowed down a problem where including header.php in my botocs roster 
adds a new line to the top of the XML output.  I also found that it does 
the same with the default XML roster from the team page.  If I comment out 
the race class from the header, I don't get the new line when I view the 
source of the page.  Of course my page doesn't work though.

Also since I was trying to click on XML and accidentally clicked PDF, PDF 
is broken with the error:

Warning: Cannot modify header information - headers already sent by 
(output started at /lib/class_race.php:140) in /pdf/fpdf.php on line 1017
FPDF error: Some data has already been output, can't send PDF file

Original issue reported on code.google.com by funnyfin...@hotmail.com on 27 May 2009 at 11:27

GoogleCodeExporter commented 9 years ago
Delete the empty lines after "?>" in class_race.php and you'll get rid of the 
error.

/Daniel

Original comment by blodae@gmail.com on 28 May 2009 at 2:10

GoogleCodeExporter commented 9 years ago
I would have never guessed that.  I couldn't figure out what was making that 
line.  
Just was able to narrow it down by commenting out includes.

I'll try it out tonight!

Original comment by funnyfin...@hotmail.com on 28 May 2009 at 2:16

GoogleCodeExporter commented 9 years ago
Yep, whatever is after "?>" is outputtet directly to the browser. Just remove 
the
last empty line.

Original comment by Nimda...@gmail.com on 28 May 2009 at 2:34

GoogleCodeExporter commented 9 years ago
I've done it for you - did some other changes myself anyway.

Original comment by Nimda...@gmail.com on 28 May 2009 at 4:17