Error When trying to login.

Started by ktap12996, July 27, 2015, 03:48:52 AM

Previous topic - Next topic

ktap12996

Hi Guys

Was wondering if anyone could help me...

I've created a forum (obviously lol) and it was working fine for about a week.

Now however I am getting the following error message when opening the page:
Fatal error: Call to undefined function remote_login() in /home/kylespe/public_html/Sources/Load.php on line 1817

Ive opened that file and line 1817 is as follows:

   remote_login($user_info['username']);

Would've thought that would be ok seems I haven't modified it.


Cheers
Kyle

Illori

can you attach the file to your next post so we can look at the whole file?

ktap12996


Illori


global $cookiename, $user_info, $language;

if (!empty($_COOKIE[$cookiename]) && (empty($_COOKIE["chch-SI"]) || empty($_SESSION['chch-login'])) && $user_info['username'] !='')

{
remote_login($user_info['username']);
}

global $boardurl,$cookiename,$boarddir;

$ses = NULL;
$xhash = 0;

if (!empty($_COOKIE[$cookiename]))
{
$data = str_replace("\\", "", $_COOKIE[$cookiename]);
$data = @unserialize($data);
$ses = $data[0];
}

if(is_file($boarddir."/freichat/hardcode.php")){

       require $boarddir."/freichat/hardcode.php";

       //$uid is defined in the above required file
       $temp_id =  $ses . $uid;

       $xhash = md5($temp_id);

}




$context['html_headers'] .= '<script type="text/javascript" language="javascipt"src="'.$boardurl.'/freichat/client/main.php?id='.$ses.'&xhash='.$xhash.'"></script>
<link rel="stylesheet" href="'.$boardurl.'/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css" />';


the issue seems related to a freichat mod, you should ask them what is going on.

ktap12996

ahh,

I unistalled that mod...

Any Suggestions?

Cheers

Illori

if you uninstalled it then you need to check all your files for code left over from it and remove it.

ktap12996

Should i delete the part of code?

Thanks

Kindred

you need to MANUALLY parse the mod that was uninstalled and CAREFULLY, MANUALLY edit any of the files where it left code behind, in order to remove the code or change it back.

When you uninstalled, there would have been some error messages, warning you that not everything was going to be successful.  When you see those warnings on an install or uninstall, that means that you need to MANUALLY remove (or add, in the case of an install) the code.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ktap12996

Thanks buddy, i've done that and am now getting a new error message,
as follows

Parse error: syntax error, unexpected ']' in /home/kylespe/public_html/Sources/Load.php on line 2773

I'll attach the relevant file.

Cheers
Kyle

Shambles

^-- you've edited out the end of that file. Get a pre-edit copy and try again.

ktap12996

I haven't modified it lol...

where can i get one?

Cheers

Illori

if you dont know if any other files may be effected, best to start out with fresh files.

http://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files

ktap12996


Advertisement: