Notice: Undefined index: alias

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
indian98476
Forum Commoner
Posts: 78
Joined: Tue Dec 15, 2009 3:24 am

Notice: Undefined index: alias

Post by indian98476 »

Notice: Undefined index: alias in .../app/plugins/ace/controllers/request_elements_controller.php on line 236...
so, i want to know whats this error meant for? is it for a variable that is undefined?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Notice: Undefined index: alias

Post by requinix »

"Undefined index: alias" means the "alias" [array] index is undefined.

Code: Select all

$array = array("key" => "value");
echo $array["foo"]; // undefined index: foo
indian98476
Forum Commoner
Posts: 78
Joined: Tue Dec 15, 2009 3:24 am

Re: Notice: Undefined index: alias

Post by indian98476 »

thanx i understand that...but where does alias fit in here?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Notice: Undefined index: alias

Post by requinix »

indian98476 wrote:thanx i understand that...but where does alias fit in here?
I don't know. It's your code - you find it.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Notice: Undefined index: alias

Post by pickle »

Somewhere in your code, an element in an array is trying to be referenced by using the "alias" index - similar to the "foo" index in ~tasairis' example.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
indian98476
Forum Commoner
Posts: 78
Joined: Tue Dec 15, 2009 3:24 am

Re: Notice: Undefined index: alias

Post by indian98476 »

thanx guyz...
Post Reply