Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Admin CP Problem.. (http://www.mysidiaadoptables.com/forum/showthread.php?t=3971)

Aasixx 01-22-2013 03:10 PM

Admin CP Problem..
 
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:

PHP Code:

    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:

PHP Code:

    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. :/


All times are GMT -5. The time now is 12:19 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.