Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3881 by bartosz....@gmail.com: Error 500, when accessing Admin Dashboard
https://code.google.com/p/reviewboard/issues/detail?id=3881

What version are you running?
2.0.14, 2.5beta1

What's the URL of the page containing the problem?
http://rbsite/admin/

What steps will reproduce the problem?
1. Login to Reviewboard as user with set 'Staff status', and is not created during installation.
2. Click link to admin dashboeard
3. Got 'Something broke! (Error 500)'.

What is the expected output? What do you see instead?
Admin dashboard loaded.

What operating system are you using? What browser?
Server OS: Linux pingwintc 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt2-1~bpo70+1 (2014-12-08) x86_64 GNU/Linux
Client OS: Win7, x64
Browser: Chrome/Opera/Firefox

Please provide any additional information below.

Apache error.log:
[Tue Jun 09 09:42:19 2015] [error] ERROR:root:Exception thrown for user #### at http://rbsite/admin/
[Tue Jun 09 09:42:19 2015] [error]
[Tue Jun 09 09:42:19 2015] [error] 'NoneType' object has no attribute 'get'
[Tue Jun 09 09:42:19 2015] [error] Traceback (most recent call last):
[Tue Jun 09 09:42:19 2015] [error] File "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/core/handlers/base.py", line 112, in get_response [Tue Jun 09 09:42:19 2015] [error] response = wrapped_callback(request, *callback_args, **callback_kwargs) [Tue Jun 09 09:42:19 2015] [error] File "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/contrib/admin/views/decorators.py", line 17, in _checklogin [Tue Jun 09 09:42:19 2015] [error] return view_func(request, *args, **kwargs) [Tue Jun 09 09:42:19 2015] [error] File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5beta1-py2.7.egg/reviewboard/admin/views.py", line 42, in dashboard [Tue Jun 09 09:42:19 2015] [error] primary_widget_selections = profile_data.get('primary_widget_selections') [Tue Jun 09 09:42:19 2015] [error] AttributeError: 'NoneType' object has no attribute 'get'

After:
update accounts_profile set extra_data = '{}' WHERE user_id = {user_id};

Everything works fine.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to