vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   when i upgraded to 2.0.3, this happened (https://vborg.vbsupport.ru/showthread.php?t=24361)

Ruth 08-02-2001 08:05 AM

in every non vB page that uses a header, i get this
Warning: Oops, php3_SetCookie called after header has been sent in ./admin/functions.php on line 1475

when i try to logout and log in from a different page...

how can i solve this ?

Thanks

Mike Sullivan 08-02-2001 04:21 PM

Make sure you're not printing anything out before including/requiring global.php.

Ruth 08-03-2001 12:39 AM

PHP Code:

<?php

chdir
($DOCUMENT_ROOT "/forums");
require(
$DOCUMENT_ROOT ."/forums/global.php");

eval(
"dooutput(\"".gettemplate('header')."\");");

if (
$bbuserinfo['userid']==0) {
eval(
"standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
}
else
{
$username=$bbuserinfo['username'];

if (
$bbuserinfo['value']!='') {
if (
$bbuserinfo['value2']!=''){ $variable=$bbuserinfo['value2'];}

}

}

?>

This is the code i am using where i added after requiring global.php
PHP Code:

eval("dooutput(\"".gettemplate('header')."\");"); 

but maybe because the standarderror template, is using another header as well, so the header doubles.

so i decided to remove the header from redirecterror, and i didnt get that much error on line 1475, but you know it is not that good using all the redirecterror templates without a header, so

(1) is there any advice on using this for a better solution?

(2) is it possible to use the header only for the second "if"statement and not when getting the template error_nopermission_loggedout using the previous code?

Thanks Ed for your help :)


All times are GMT. The time now is 07:45 AM.

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.01048 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete