![]() |
|
|
Thread Tools |
|
#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:
If someone could help me out it would be greatly appriciated. Thanks, Joe No members have liked this post.
|
||||
|
#2
|
||||
|
||||
|
DOH!
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? No members have liked this post.
|
|
#3
|
||||
|
||||
|
Umm
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.
No members have liked this post.
|
|
#4
|
||||
|
||||
|
Paste the full error here. The headers are probably sent from a different place.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
|
#5
|
||||
|
||||
|
Full Error
FireFly,
Here is the full error:
Thank you, Joe No members have liked this post.
|
|
#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?
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
|
#7
|
||||
|
||||
|
Hmm
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:
Thank you, Joe No members have liked this post.
|
||||
|
#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 $noheader=1; in poll.php right before you require global.php. It should solve the problem if it's what I'm thinking it is.
![]()
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
|
#9
|
||||
|
||||
|
Thank You
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) No members have liked this post.
|
|
#10
|
||||
|
||||
|
Que pasado al presidente?!
*pánico* Es él muerte? No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Send 503 error "Service Temporarily Unavailable" header on MySQL error! 3.6.x & prior | Milad | vBulletin 3.6 Add-ons | 9 | 09 May 2008 15:20 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 20:35.




