ngeinc Posted September 18, 2010 Share Posted September 18, 2010 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? Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted September 18, 2010 Share Posted September 18, 2010 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); Quote Link to comment Share on other sites More sharing options...
Djkanna Posted September 18, 2010 Share Posted September 18, 2010 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(); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.