The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can I get DoOutput to not send header?
I am trying to intigrate something with vB, but my headers are being sent twice. (I get something like "Warning: Cannot add header information - headers already sent") I think the headers are being sent by the initial PHP script and again at the end of the program when I call dooutput.
It looks like there is attribute to not send the headers, but I can't seem to get it to work. Here is what I tried: PHP Code:
Thanks, Joe |
#2
|
||||
|
||||
Never mind!
I had it right all along!!! I made that change that I had above... and then I uploaded it to the WRONG PLACE!!! So when I tried to run it, it just kept being the old one. Can you believe it? |
#3
|
||||
|
||||
OK well, I just tried it again and now it dosn't work again! And I DID upload it correctly. I am getting that "Header Cannot be Sent" error.
|
#4
|
||||
|
||||
Paste the full error here. The headers are probably sent from a different place.
|
#5
|
||||
|
||||
FireFly,
Here is the full error: Quote:
Thank you, Joe |
#6
|
||||
|
||||
That line in functions.php sets a cookie, which is just like sending headers (it's exactly like it).
What line 11 of test.php and why are you printing stuff there? |
#7
|
||||
|
||||
FireFly,
First I'll try to explain what I am trying to do. I recently installed vbIndex by el3m3nt to be used for the main page when people come to my site. However, for the non-vb pages of my site, I wanted to include the poll that is used on the vbIndex page. So, I copied the poll section of vbIndex (originally written by wajones) and put it into it's own php file (attached). I replaced the eval's at the bottem with eval dooutput's. Now, I am trying to include this file within the non-vbpages of my site. Sometimes, this works without any problems (like now)... other times, it gives me the error. Here is my test link: http://www.joeharrison.com/newheader/test.php This file has the follwing to include poll.php: PHP Code:
Joe |
#8
|
||||
|
||||
I'm not sure about this, it's hard without seeing how your whole site is built and using the vB engine, but anyway: Try sticking [minicode]$noheader=1;[/minicode] in poll.php right before you require global.php. It should solve the problem if it's what I'm thinking it is.
|
#9
|
||||
|
||||
FireFly,
I havn't gotten that error again but I'll try what you suggested if I do. Thanks very much for your help. I'm really looking forward to the release of vbHome Full by nakkid ... it should make site intigration much easier! Thanks again, Joe PS. You're no longer the president? haha (new avatar) |
#10
|
||||
|
||||
Que pasado al presidente?!
*pánico* Es él muerte? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|