View Full Version : Admin CP Problem..
Aasixx
01-22-2013, 03:10 PM
Alright, I decided to install 1.3.2 (love it so far), but when I tried to access (login to) the admin cp, it lets me login and says "Login Successful, you are being redictred to the index page." and it never redirects me.
I have the feeling it's doing that because of this:
"Warning: Cannot modify header information - headers already sent by (output started at /home/albisian/public_html/classes/class_cookies.php:112) in /home/albisian/public_html/admincp/index.php on line 40"
How can I fix it?
Hall of Famer
01-23-2013, 12:58 AM
umm so you are able to login, just get this weird cookie warning? If so, find these lines:
public function setAdminCookies(){
global $mysidia;
ob_start();
$Month = 2592000 + time();
$session = $mysidia->session->getid();
$this->mysadmsession = sha1($this->mysuid.$session);
setcookie("mysadmsession",$this->mysadmsession,$Month);
$this->mysadmloginattempt = 0;
setcookie("mysadmloginattempt", $this->mysadmloginattempt,$Month);
ob_flush();
return TRUE;
}
Replace by:
public function setAdminCookies(){
global $mysidia;
ob_start();
$Month = 2592000 + time();
$session = $mysidia->session->getid();
$this->mysadmsession = sha1($this->mysuid.$session);
@setcookie("mysadmsession",$this->mysadmsession,$Month);
$this->mysadmloginattempt = 0;
@setcookie("mysadmloginattempt", $this->mysadmloginattempt,$Month);
ob_flush();
return TRUE;
}
See if the warning goes away.
Aasixx
01-23-2013, 03:43 PM
What file is that located at?
Hall of Famer
01-23-2013, 03:46 PM
classes/class_cookies.php.
Aasixx
01-23-2013, 04:45 PM
It still pops up when I log in. :/
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.