Closed
Bug 883194
Opened 11 years ago
Closed 11 years ago
[dev] Error message appears when trying to save changes in Edit Profile page
Categories
(Participation Infrastructure :: Phonebook, defect)
Participation Infrastructure
Phonebook
Tracking
(Not tracked)
VERIFIED
FIXED
2013-06-27
People
(Reporter: moz.teodosia, Assigned: giorgos)
Details
(Whiteboard: [kb=1008919] [fromAutomation][dev])
Attachments
(1 file)
91.48 KB,
image/png
|
Details |
Steps to reproduce: 1. Go to mozillians-dev.allizom.org and login. 2. Click the 'Edit profile' button. 3. Don't make any changes and click the 'Update profile' button'. Expected result: The profile page should be displayed and no field should be changed. Actual result: An error message appears: Please correct the following errors: privacy_email Here is the traceback: http://mbrandt.pastebin.mozilla.org/2524189
Reporter | ||
Updated•11 years ago
|
Whiteboard: [fromAutomation]
Comment 1•11 years ago
|
||
I'll just point out that this bug does not appear in staging, which means it is related to the homepageredux branch (which currently contains a refactored profile edit page), not the master branch.
Comment 2•11 years ago
|
||
Adding traceback to the bug - the pastebin was only set to keep the traceback for 24-hours: Traceback (most recent call last): File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib64/python2.6/site-packages/newrelic-1.10.2.38/newrelic/api/object_wrapper.py", line 220, in __call__ self._nr_instance, args, kwargs) File "/usr/lib64/python2.6/site-packages/newrelic-1.10.2.38/newrelic/hooks/framework_django.py", line 475, in wrapper return wrapped(*args, **kwargs) File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/views/decorators/cache.py", line 89, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/data/www/mozillians-dev.allizom.org/mozillians/apps/phonebook/views.py", line 98, in view_profile return render(request, 'phonebook/profile.html', data) File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/shortcuts/__init__.py", line 44, in render return HttpResponse(loader.render_to_string(*args, **kwargs), File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/template/loader.py", line 176, in render_to_string return t.render(context_instance) File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/jingo/jingo/__init__.py", line 189, in render return super(Template, self).render(context_dict) File "/usr/lib64/python2.6/site-packages/newrelic-1.10.2.38/newrelic/api/object_wrapper.py", line 220, in __call__ self._nr_instance, args, kwargs) File "/usr/lib64/python2.6/site-packages/newrelic-1.10.2.38/newrelic/api/function_trace.py", line 82, in dynamic_wrapper return wrapped(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/data/www/mozillians-dev.allizom.org/mozillians/apps/phonebook/templates/phonebook/profile.html", line 1, in top-level template code {% extends "base.html" %} File "/data/www/mozillians-dev.allizom.org/mozillians/templates/base.html", line 152, in top-level template code {% block content_wrapper %} File "/data/www/mozillians-dev.allizom.org/mozillians/templates/base.html", line 155, in block "content_wrapper" {% block content %}{% endblock %} File "/data/www/mozillians-dev.allizom.org/mozillians/apps/phonebook/templates/phonebook/profile.html", line 83, in block "content" <img src="{{ user.userprofile.get_photo_url('150x150') }}" alt="{{ user.username }}"> File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 371, in getattr return getattr(obj, attribute) UndefinedError: 'django.contrib.auth.models.AnonymousUser object' has no attribute 'userprofile'
Summary: Error message appears when trying to save changes in Edit Profile page → [dev] Error message appears when trying to save changes in Edit Profile page
Whiteboard: [fromAutomation] → [fromAutomation][dev]
Updated•11 years ago
|
Whiteboard: [fromAutomation][dev] → [kb=1008919] [fromAutomation][dev]
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: --- → 2013-06-27
Reporter | ||
Comment 3•11 years ago
|
||
Verified fixed both on dev and on stage.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•