vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can anyone tell me what this means? (https://vborg.vbsupport.ru/showthread.php?t=36471)

Liz 03-23-2002 04:08 PM

Can anyone tell me what this means?
 
Warning: Cannot add header information - headers already sent by (output started at /home/xxx-bo/public_html/admin/sessions.php:399) in /home/xxx-bo/public_html/admin/global.php on line 138

Warning: Cannot add header information - headers already sent by (output started at /home/xxx-bo/public_html/admin/sessions.php:399) in /home/xxx-bo/public_html/admin/global.php on line 164

Hang on a sec

I'm getting this message everytime I try and log into the control panel. I get this and then it brings me straight back to the login page.
I have version 2.2.0 if that makes a difference...

Admin 03-23-2002 04:51 PM

What's line 399 of sessions.php and lines 138 / 164 in admin/global.php?

Liz 03-23-2002 05:36 PM

Well, I tried counting the lines and this is what I came up with ... hope they are right (I'm putting the lines before and after too as the line alone didn't make sense to me). There must be an easier way to find the lines, but I don't know it.

What's line 399 of sessions.php

($showforumusers,",inforum='0' ","")." WHERE userid='$bbuserinfo[userid]'");
} else {

and lines 138 / 164 in admin/global.php?

$getperms=$DB_site->query_first("SELECT cancontrolpanel FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND user.userid='$bbuserinfo[userid]'");
if ($getperms[cancontrolpanel]!=1) {
$bbuserinfo[userid]=0;
}

if ($bbuserinfo[userid]!=0 and $loginusername and !$createanonsession) {
setcookie("bbadminon",1,0,'/');
$HTTP_COOKIE_VARS['bbadminon']=1;
} else {
if ($bbuserinfo[userid]==0) {
$HTTP_COOKIE_VARS['bbadminon']=0;
}
}

if ($debug!=1) {
// check for files existance. Potential security risks!
if (file_exists("install.php")==1) {
echo "<html><body><p>Security alert! install.php still remains in the admin directory. This poses a security risk, so please delete that file immediately. You cannot access the control panel until you do.</p></body></html>";
exit;
}

There is no install.php in the admin directory ...

Liz 03-28-2002 01:34 AM

Hellooooo! I still can't get into my CPanel! Help!!

Mark Hensler 03-28-2002 04:54 AM

This line looks like a parse error to me:
($showforumusers,",inforum='0' ","")." WHERE userid='$bbuserinfo[userid]'");

Have you tried installing any hacks? There should be no errors with the default installation.

Liz 03-28-2002 01:36 PM

Yes, tried to install the security id hack but took it out. Can you tell me how to fix the line? Don't have a copy of the original installation file (I know, I know) ... tho we do have a copy of a later version ... would it be the same?

Thanks for your help!

And whats a parse error? Newbie here!!

Mark Hensler 03-28-2002 05:21 PM

How do you not have a copy of the original?

TECK 03-28-2002 05:44 PM

download from the members area a new copy of software and there you will have the original files.
also download a program like UltraEdit or EditPlus to view the php files.. counting the lines manually could get you insane. ;)

also i cannot access your website? what VB version you run?

regards,
nakkid.

Liz 03-29-2002 02:26 AM

The version we are using is 2.2.0 ... won't we get the latest version by downloading? When you upgrade do you lose the hacks and styles you put in?

Thanks for the info on counting the lines - it IS driving me insane!

We didn't make a back-up of the file before putting the tiny hack in so don't have the original file pre-hack.

Admin 03-29-2002 06:24 AM

Upgrade destroys your hacks, but doesn't touch ANY custom templates you have.


All times are GMT. The time now is 08:39 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.00929 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete