Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2002, 06:53 PM
JoeHarrison's Avatar
JoeHarrison JoeHarrison is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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:
eval("dooutput(\"".gettemplate('new_test')."\",0);"); 
If someone could help me out it would be greatly appriciated.

Thanks,
Joe
Reply With Quote
  #2  
Old 04-29-2002, 07:03 PM
JoeHarrison's Avatar
JoeHarrison JoeHarrison is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 04-29-2002, 07:40 PM
JoeHarrison's Avatar
JoeHarrison JoeHarrison is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 04-30-2002, 06:22 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paste the full error here. The headers are probably sent from a different place.
Reply With Quote
  #5  
Old 04-30-2002, 05:19 PM
JoeHarrison's Avatar
JoeHarrison JoeHarrison is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FireFly,
Here is the full error:
Quote:
Warning: Cannot add header information - headers already sent by (output started at /home/harrison/public_html/newheader/test.php:11) in /home/harrison/public_html/forums/admin/functions.php on line 1545
The weird thing is... this worked fine about an hour ago. No error at all. I cam back and tried it again and I get an error. Is the header automatically sent when I include global.php?

Thank you,
Joe
Reply With Quote
  #6  
Old 05-01-2002, 09:56 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 05-01-2002, 06:27 PM
JoeHarrison's Avatar
JoeHarrison JoeHarrison is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
<?php include "/home/harrison/public_html/forums/joe_poll.php" ?>
Thank you,
Joe
Attached Files
File Type: txt poll.txt (4.1 KB, 7 views)
Reply With Quote
  #8  
Old 05-01-2002, 06:49 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 05-02-2002, 02:26 AM
JoeHarrison's Avatar
JoeHarrison JoeHarrison is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #10  
Old 05-02-2002, 05:31 AM
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Que pasado al presidente?!
*pánico*
Es él muerte?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04223 seconds
  • Memory Usage 2,280KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete