vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   URGENT!! Please HELP! (https://vborg.vbsupport.ru/showthread.php?t=137366)

BreeBears 01-24-2007 02:07 AM

URGENT!! Please HELP!
 
OMG I am TOTALLY Panicig here!!! Please Please Please help!!!

Ok, here's the deal... got a problem with cookies... I have no clue when it started... its a fresh install and I've been configuring everyhing adding mods and stuff.. well I tried to log out and it wouldn't let me - and my dummy butt cleared my cookies!!!! And now I can NOT log back in ANYWHERE - Portal, Forum, PhotoPost - nothing!! Gives the following error:

Quote:

Unable to add cookies, header already sent.
File: /PATHREMOVED/htdocs/Forum/modules/topten.php
Line: 15
Any Suggestions?!?!?!?!?!??!?!

I deleted the Top Ten PHP file but then it just gives me blank white page when I try to log on ugh =0(

Freakin' out here -Bree

Adrian Schneider 01-24-2007 02:10 AM

Paste the contents of that file here (or just around line 15 if it's long). The most common cause is an extra space/newline after the closing PHP tag.

BreeBears 01-24-2007 02:12 AM

Here's the whole file:

PHP Code:

<?php 

// ### TOP STATS ######################################## 
 
$top_stats = array(); 
// TOP POSTERS 
$top_posters $db->query_read("SELECT * FROM ".TABLE_PREFIX."user ORDER BY posts DESC LIMIT 10"); 
while(
$top_poster $db->fetch_array($top_posters)) 

eval(
'$top_stats[\'top_posters\'] .= "' fetch_template('top_posters') . '";');    

unset(
$top_poster); 
$db->free_result($top_posters);
eval(
'$home[$mods[\'modid\']][\'content\'] = "' fetch_template('adv_portal_topposters') . '";'); 
?>

Line 15 would b the close php tag

Adrian Schneider 01-24-2007 02:13 AM

Triple check to make sure there isn't a space after it.

If you want to disable it, but can't access the adminCP, edit config.php and add this:
PHP Code:

define('DISABLE_HOOKS'1); 

(then disable the hack) then you can remove that line again.

BreeBears 01-24-2007 02:14 AM

Problem solve SirAdrian!!!! I pasted the code but then went and tried to figure out what you mean and that was exactly it... spaces after closing tag.. OMG OMG OMG THANKYOU soooooooooooooooooo very much!!! You saved me from having a heart attack way too young ROFL Was totally panicing - You are my new best friend!! Thankyou Thankyou!!!!

Always -Bree

Adrian Schneider 01-24-2007 02:21 AM

lol

Cheers :)

dartho 01-27-2007 12:32 PM

Search function is your friend - thanks SirAdrian, helped me too...


All times are GMT. The time now is 10:06 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.01121 seconds
  • Memory Usage 1,729KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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