Traceback after clicking Save button on User Settings Personal Tab

Issue #449 resolved
Roger Haase created an issue

Login, go to User Settings, Personal tab, and click the Save button. If anything was changed, the data will be saved, but there will be a traceback on the console log:

2014-07-07 15:05:04,269 ERROR MoinMoin.signalling.log:30 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "d:\bitbucket\m2-x3\MoinMoin\apps\frontend\views.py", line 1748, in usersettings
    if form.validate():
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flatland\schema\base.py", line 712, in validate
    validated = element._validate(state, False)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flatland\schema\containers.py", line 119, in _validate
    return validate_element(self, state, validators)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flatland\schema\base.py", line 810, in validate_element
    valid = fn(element, state)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flatland\validation\base.py", line 33, in __call__
    return self.validate(element, state)
  File "d:\bitbucket\m2-x3\MoinMoin\forms.py", line 127, in validate
    if not element.parent.parent['extra_meta_text'].valid:
TypeError: 'NoneType' object has no attribute '__getitem__'
2014-07-07 15:05:04,299 INFO werkzeug:87 127.0.0.1 "POST /+usersettings HTTP/1.1" 500 -
Traceback (most recent call last):
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flask\app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "d:\bitbucket\m2-x3\MoinMoin\apps\frontend\views.py", line 1748, in usersettings
    if form.validate():
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flatland\schema\base.py", line 712, in validate
    validated = element._validate(state, False)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flatland\schema\containers.py", line 119, in _validate
    return validate_element(self, state, validators)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flatland\schema\base.py", line 810, in validate_element
    valid = fn(element, state)
  File "D:\Bitbucket\m2-x3-venv-python\lib\site-packages\flatland\validation\base.py", line 33, in __call__
    return self.validate(element, state)
  File "d:\bitbucket\m2-x3\MoinMoin\forms.py", line 127, in validate
    if not element.parent.parent['extra_meta_text'].valid:
TypeError: 'NoneType' object has no attribute '__getitem__'

https://bitbucket.org/thomaswaldmann/moin-2.0/issue/413/traceback-after-clicking-save-button-on may be related.

Comments (2)

  1. Log in to comment