Skip to main content
Topic: User roles / causing error 'unkown index' (Read 1459 times) previous topic - next topic

User roles / causing error 'unkown index'

I need to enable User roles. so I did the following:

- I created a field called levelname in the user table. the field is varchar(15).
- Created an idex called levelname for that table
- I set the field in 'roles and permission'
- I created 3 roles: Administrator, Guest and User
- I filled the field 'levelname' with the userlevel of the correspondig user

When running the app, I get a 'Undefined index: levelname in C:\xampp\htdocs\team-herdecke\config.php on line 101
   '

Wht's this?

Unfortunately the documentation is .. (not existent) ;)

Best,
Alex

Re: User roles / causing error 'unkown index'

Reply #1
@wurzelsepp1‍ if you already created "...a field called levelname in the user table...", what is the "...an idex called levelname..." created for?