Hi,

I am having trouble logging into my website because of a 'Nonetype' not 
callable error. More specifically, I believe I am getting the error from 
current.sesssion.renew because it is None. The traceback is below. I have 
emptied the sessions folder and cleared my cookies on my browser to see if 
it is connected, but no luck. 

-----------------------------------------------------------------------------------------------------------------

Traceback (most recent call last):
  File "/var/www/web2py/gluon/restricted.py", line 212, in restricted
    exec ccode in environment
  File "/var/www/web2py/applications/init/controllers/default.py" 
<https://zoomitnow.com/admin/default/edit/init/controllers/default.py>, line 
2587, in <module>
  File "/var/www/web2py/gluon/globals.py", line 194, in <lambda>
    self._caller = lambda f: f()
  File "/var/www/web2py/applications/init/controllers/default.py" 
<https://zoomitnow.com/admin/default/edit/init/controllers/default.py>, line 
1854, in menu_login
    user = auth.login_bare(login_form.vars.email, login_form.vars.password)
  File "/var/www/web2py/gluon/tools.py", line 2159, in login_bare
    self.login_user(user)
  File "/var/www/web2py/gluon/tools.py", line 2128, in login_user
    current.session.renew(clear_session=not self.settings.keep_session_onlogin)
TypeError: 'NoneType' object is not callable

-----------------------------------------------------------------------------------------------------------------


Originally my problem was 'Formstyle not supported', but I fixed that by 
doing auth.settings.formstyle='bootstrap'. Does anyone know if this is 
connected with the above error? I have been trying to solve this problem 
all day. Any help would be appreciated. 


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to