vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   PluhNews 1.5 (https://vborg.vbsupport.ru/showthread.php?t=21875)

Goldfinger 09-13-2001 10:27 AM

Ok this hack is GREAT, when i am logged on my board. But when i am logged out. i get this error

Warning: Cannot add header information - headers already sent by (output started at /path/to/index.php:10) in /path/to/admin/functions.php on line 1457

Note: it shows the direct path i didnt want to show it on here :) to save somewhat privacy. But anyone have any ideas on how to fix it? I am using 2.0.3.

You can view it at S-Files Online

Thanks :).

webhost 09-13-2001 11:00 AM

I just ran into this on another hack. I found that it was because the database name and password was wrong, check your Pluhconfig file for proper settings

Goldfinger 09-13-2001 11:19 AM

all the variables are right in the PluhConfig.

Goldfinger 09-13-2001 08:37 PM

Still have the same problem Web. Even after you fixed it... i cleared my cookies. and it didnt work. but if im cookied it'll work..

P1aGu3 09-15-2001 11:05 AM

Brilliant Script ... saved me alot of hairpulling and pain ...

I am getting the same header problem ...

My index is basicly a series of includes

PHP Code:

<? include ("location/includes/header.php")?>
various html for table layouts
<? include ("forums/PluhNews.php")?>
various finishing html
<? include ("location/includes/footer.php")?>


P1aGu3 09-15-2001 11:09 AM

I can already guess that the inclusion of the global.php and admin/config.php is causing the Vbulleting Header functions to kick in causing the conflict with my header.php.

But no idea how to fix it.

Goldfinger 09-15-2001 11:22 AM

Actually the problem is with cookies. there is no header.php and footer.php

P1aGu3 09-15-2001 11:28 AM

Hmmm ... thats a point ...

My error occurs on line 1459 ... which is "setcookie($name,$value,$expire,$cookiepath);" Below

PHP Code:

// ###################### Start vbsetcookie #######################
function vbsetcookie($name,$value="",$permanent=1) {
  global 
$cookiepath,$cookiedomain;

  if (
$permanent) {
    
$expire=time() + 60*60*24*365;
  } else {
    
$expire 0;
  }
  
  if (
$cookiedomain) {
    
setcookie($name,$value,$expire,$cookiepath,$cookiedomain);
  } else {
    
setcookie($name,$value,$expire,$cookiepath);
  }
  



Goldfinger 09-15-2001 11:30 AM

I know for a fact its a cookie problem because when you are logged into your board it'll work. But when you delete your cookies from your browser it'll be messed up.

P1aGu3 09-15-2001 11:33 AM

I think I know how to fix this (long time since I worked with cookies)

Add the following to the top of the index.

PHP Code:

<?
require("forum/fnqglglob.php");
require("forum/fnqglconfig.php");
require("forum/admin/config.php");
?>

Before the require("layout/header.php");

The cookies from memory have to be loaded before the first < html > tag.

Mind you my memory is sad.


All times are GMT. The time now is 03:56 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.01452 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete