Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Mar 2002, 17:08
Liz's Avatar
Liz Liz is offline
 
Join Date: Nov 2001
Real name: Um...Liz, lol.
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...
Reply With Quote
  #2  
Old 23 Mar 2002, 17:51
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
What's line 399 of sessions.php and lines 138 / 164 in admin/global.php?
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #3  
Old 23 Mar 2002, 18:36
Liz's Avatar
Liz Liz is offline
 
Join Date: Nov 2001
Real name: Um...Liz, lol.
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 ...

Last edited by Liz : 24 Mar 2002 at 17:13.
Reply With Quote
  #4  
Old 28 Mar 2002, 02:34
Liz's Avatar
Liz Liz is offline
 
Join Date: Nov 2001
Real name: Um...Liz, lol.
Hellooooo! I still can't get into my CPanel! Help!!
Reply With Quote
  #5  
Old 28 Mar 2002, 05:54
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
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.
Reply With Quote
  #6  
Old 28 Mar 2002, 14:36
Liz's Avatar
Liz Liz is offline
 
Join Date: Nov 2001
Real name: Um...Liz, lol.
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!!
Reply With Quote
  #7  
Old 28 Mar 2002, 18:21
Mark Hensler's Avatar
Mark Hensler Mark Hensler is offline
 
Join Date: Oct 2001
How do you not have a copy of the original?
Reply With Quote
  #8  
Old 28 Mar 2002, 18:44
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
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.
__________________
Floren Munteanu
Axivo Inc.
Axivo Community - Visit the forums to find out more about us
Why Queued - My personal blog

Last edited by TECK : 28 Mar 2002 at 18:48.
Reply With Quote
  #9  
Old 29 Mar 2002, 03:26
Liz's Avatar
Liz Liz is offline
 
Join Date: Nov 2001
Real name: Um...Liz, lol.
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.
Reply With Quote
  #10  
Old 29 Mar 2002, 07:24
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Upgrade destroys your hacks, but doesn't touch ANY custom templates you have.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 02:52.

Layout Options | Width: Wide Color: