Jump to content
MakeWebGames

Recommended Posts

Posted

when i installed v2.0 i get this error for every page go on to : Notice: Undefined index: name in /home/ngewars/public_html/staff_items.php on line 348

 

or Notice: Undefined index: attacking in /home/ngewars/public_html/header.php on line 117

 

anyone can help me?

Posted

Simply the script tries to access something which is not there. So either you check with isset or you remove the notice report (to be placed at the beginning of the script):

error_reporting(E_ALL  & ~E_NOTICE);
Posted

Comes across not checking if sessions are actually set before using them..

in MCC

$_SESSION['attacking'] is being checked in the header constantly, yet it's only set in attack.php which is only used if a player leaves before finishing the attack.

So like Alain said remove notices from being displayed or check if things are set using isset();

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...