[traceback] 'NoneType' object has no attribute 'get_profile' (kbforums)

RESOLVED FIXED in 2014Q1

Status

P1
normal
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: willkg, Assigned: rrosario)

Tracking

unspecified
2014Q1

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: u=contributors c=kbforums p=1 s=2013.25)

Internal Server Error: /en-US/kb/troubleshoot-firefox-issues-using-safe-mode/discuss/2103

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "newrelic/api/object_wrapper.py", line 216, in __call__
    self._nr_instance, args, kwargs)
  File "newrelic/hooks/framework_django.py", line 475, in wrapper
    return wrapped(*args, **kwargs)
  File "kitsune/kbforums/views.py", line 116, in posts
    'feeds': feed_urls})
  File "django/shortcuts/__init__.py", line 44, in render
    return HttpResponse(loader.render_to_string(*args, **kwargs),
  File "django/template/loader.py", line 176, in render_to_string
    return t.render(context_instance)
  File "jingo/__init__.py", line 193, in render
    return super(Template, self).render(context_dict)
  File "newrelic/api/object_wrapper.py", line 216, in __call__
    self._nr_instance, args, kwargs)
  File "newrelic/api/function_trace.py", line 82, in dynamic_wrapper
    return wrapped(*args, **kwargs)
  File "jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/data/www/support.mozilla.org/kitsune/kitsune/kbforums/templates/kbforums/posts.html", line 11, in top-level template code
    {% set scripts = ('forums', 'libs/jqueryui') %}
  File "/data/www/support.mozilla.org/kitsune/kitsune/kbforums/templates/kbforums/base.html", line 10, in top-level template code
    {% set meta = (('robots', 'noindex'),) %}
  File "/data/www/support.mozilla.org/kitsune/kitsune/sumo/templates/base.html", line 176, in top-level template code
    {% block content %}{% endblock %}
  File "/data/www/support.mozilla.org/kitsune/kitsune/kbforums/templates/kbforums/posts.html", line 69, in block "content"
    {% include "kbforums/includes/post.html" %}
  File "/data/www/support.mozilla.org/kitsune/kitsune/kbforums/templates/kbforums/includes/post.html", line 43, in top-level template code
    {{ _('Modified by {name} on {datetime}')|fe(name=display_name(post.updated_by), datetime=datetimeformat(post.updated, format='longdatetime')) }}
  File "kitsune/users/helpers.py", line 50, in display_name
    profile = user.get_profile()
(Assignee)

Comment 1

5 years ago
In a pull request:
https://github.com/mozilla/kitsune/pull/1782
(Assignee)

Comment 2

5 years ago
Putting into last sprint since new one hasnt started.
Priority: -- → P1
Whiteboard: u=contributors c=kbforums p=1 s=2013.25
Target Milestone: --- → 2014Q1
(Assignee)

Updated

5 years ago
Assignee: nobody → rrosario
(Assignee)

Comment 5

5 years ago
Deployed to prod now.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.