cooldude832 Posted March 10, 2009 Share Posted March 10, 2009 Having issues on a new server getting this Notice: Undefined index: cmd in /var/www/html/dashboard/dashboard/scripts/classes.php(467) : eval()'d code on line 9 cmd is a GET variable if that helps cmd is also a POST variable is it because its looking for it when its not defined? Link to comment https://forums.phpfreaks.com/topic/148861-undefined-index/ Share on other sites More sharing options...
trq Posted March 10, 2009 Share Posted March 10, 2009 is it because its looking for it when its not defined? Yes. We need to see code. Link to comment https://forums.phpfreaks.com/topic/148861-undefined-index/#findComment-781670 Share on other sites More sharing options...
cooldude832 Posted March 10, 2009 Author Share Posted March 10, 2009 The funny part is I can't view the code cause its locked in the MySQL I know its trying to read $_GET['cmd'] and $_POST['cmd'] which are not defined most of my configurations allow this to happen what do I need to do to let it do this in this config? Link to comment https://forums.phpfreaks.com/topic/148861-undefined-index/#findComment-781675 Share on other sites More sharing options...
trq Posted March 10, 2009 Share Posted March 10, 2009 The funny part is I can't view the code cause its locked in the MySQL Whatever that means. Yeah, funny. most of my configurations allow this to happen what do I need to do to let it do this in this config? Turn display errors off, though your much better off to actually fix the errors in the first place. Link to comment https://forums.phpfreaks.com/topic/148861-undefined-index/#findComment-781678 Share on other sites More sharing options...
cooldude832 Posted March 10, 2009 Author Share Posted March 10, 2009 well I want error reporting on. I know its cause I'm acting on a variable before its being defined. I have error reporting on in my other server config and no Notice Is there a way to just block the undefined index error? As for being locked in MySQL its part of the framework which is stored as binary in MySQL so I can't view it unless I use it first and then download a copy of it. Link to comment https://forums.phpfreaks.com/topic/148861-undefined-index/#findComment-781679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.