application controller uninitialize authentication error

The first thing you can do is show us the exact full error message and
the section of your code that is triggering the problem. If the stack
trace does not appear to show where in your code the error is then
post the trace also (if there is one).

Colin