Closed Bug 780215 Opened 13 years ago Closed 13 years ago

[traceback] MultipleObjectsReturned: get() returned more than one UserProfile

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: retornam, Unassigned)

References

()

Details

Traceback (most recent call last): File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/developer.mozilla.org/kuma/apps/devmo/views.py", line 45, in profile_view profile = get_object_or_404(UserProfile, user__username=username) File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/shortcuts/__init__.py", line 88, in get_object_or_404 return queryset.get(*args, **kwargs) File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/models/query.py", line 349, in get % (self.model._meta.object_name, num, kwargs)) MultipleObjectsReturned: get() returned more than one UserProfile -- it returned 2! Lookup parameters were {'user__username': u'cruciatus'} <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'csrftoken': '6b67e94f31fb9b82560dc36d7bba4117', 'sessionid': 'caf599602926ae2eca9efc082e6b9b8b'}, META:{'CSRF_COOKIE': '6b67e94f31fb9b82560dc36d7bba4117', 'DOCUMENT_ROOT': '/data/www/developer.mozilla.org/kuma/webroot', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'image/png, image/jpeg, image/pjpeg, image/x-xbitmap, image/svg+xml, image/gif;q=0.9, */*;q=0.1', 'HTTP_ACCEPT_ENCODING': 'gzip, identity;q=0.9', 'HTTP_ACCEPT_LANGUAGE': 'en, en, *', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': '$Version=1; sessionid=caf599602926ae2eca9efc082e6b9b8b; $Path=/; csrftoken=6b67e94f31fb9b82560dc36d7bba4117; $Path=/', 'HTTP_HOST': 'developer.mozilla.org', 'HTTP_SSLCLIENTCERTSTATUS': 'NoClientCert', 'HTTP_SSLCLIENTCIPHER': 'SSL_RSA_WITH_RC4_128_SHA, version=TLSv1, bits=128', 'HTTP_SSLSESSIONID': 'F6705D00F28DB929F3D5C24196FFDFFB7F50D9D9325D1B378BF034E3E1211279', 'HTTP_USER_AGENT': 'Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)', 'HTTP_X_CLUSTER_CLIENT_IP': '220.168.204.205', 'PATH_INFO': u'/en-US/profiles/cruciatus', 'PATH_TRANSLATED': '/data/www/developer.mozilla.org/kuma/wsgi/kuma.wsgi/en-US/profiles/cruciatus', 'QUERY_STRING': '', 'REMOTE_ADDR': '10.22.81.210', 'REMOTE_PORT': '38035', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/en-US/profiles/cruciatus', 'SCRIPT_FILENAME': '/data/www/developer.mozilla.org/kuma/wsgi/kuma.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://developer.mozilla.org/en-US/profiles/cruciatus', 'SCRIPT_URL': '/en-US/profiles/cruciatus',
Severity: normal → critical
OS: Mac OS X → All
Hardware: x86 → All
Summary: MultipleObjectsReturned: get() returned more than one UserProfile → [traceback] MultipleObjectsReturned: get() returned more than one UserProfile
I cleaned these up last week. Should be fixed across the site.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Version: MDN → unspecified
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.