[traceback] 'topics' is undefined

RESOLVED FIXED

Status

support.mozilla.org
General
P1
normal
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: mythmon, Assigned: mythmon)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: u=user c=kb p=1 s=2015.8)

(Assignee)

Description

3 years ago
edwin-sumo
This came up on stage since I deployed bug 1159479 (kb article breadcrumbs). I'm pretty sure it is related.

UndefinedError: 'topics' is undefined

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "newrelic/hooks/framework_django.py", line 492, in wrapper
    return wrapped(*args, **kwargs)
  File "django/views/decorators/http.py", line 41, in inner
    return func(request, *args, **kwargs)
  File "kitsune/wiki/views.py", line 81, in _doc_page_cache_view
    response = view(request, document_slug, *args, **kwargs)
  File "mobility/decorators.py", line 23, in wrapper
    return f(request, *args, **kw)
  File "kitsune/wiki/views.py", line 210, in document
    response = render(request, template, data)
  File "django/shortcuts.py", line 50, in render
    return HttpResponse(loader.render_to_string(*args, **kwargs),
  File "django/template/loader.py", line 178, in render_to_string
    return t.render(context_instance)
  File "jingo/__init__.py", line 195, in render
    return super(Template, self).render(context_dict)
  File "newrelic/api/function_trace.py", line 89, 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.allizom.org/kitsune/kitsune/wiki/templates/wiki/mobile/document.html", line 10, in top-level template code
    {% if products.all()[0] and topics.all()[0] %}
  File "jinja2/environment.py", line 371, in getattr
    return getattr(obj, attribute)
(Assignee)

Updated

3 years ago
Assignee: nobody → mcooper
Status: NEW → ASSIGNED
(Assignee)

Comment 2

3 years ago
I deployed this just now.
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.