[traceback] UndefinedError: 'count' is undefined

VERIFIED FIXED

Status

P1
major
VERIFIED FIXED
7 years ago
5 years ago

People

(Reporter: stephend, Unassigned)

Tracking

Details

(Whiteboard: [fuzzer] c=bug p=1, URL)

(Reporter)

Description

7 years ago
https://kuma-stage.mozilla.org/fr/demos/all/ throws:

Traceback (most recent call last):

  File "/data/www/django/kuma-stage.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/django/kuma-stage.mozilla.org/kuma/apps/demos/views.py", line 121, in all
    template_name='demos/listing_all.html')

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/views/generic/list_detail.py", line 101, in object_list
    return HttpResponse(t.render(c), mimetype=mimetype)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/lib/utils.py", line 107, in render
    return self.template.render(context_dict)

  File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/demos/templates/demos/listing_all.html", line 1, in top-level template code
    {% extends "demos/base.html" %}

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/demos/templates/demos/base.html", line 1, in top-level template code
    {% extends "base.html" %}

  File "/data/www/django/kuma-stage.mozilla.org/kuma/templates/base.html", line 141, in top-level template code
    {% block content %}{% endblock %}

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/demos/templates/demos/listing_all.html", line 36, in block "content"
    {{ submission_listing(

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/demos/helpers.py", line 81, in wrapper
    t = jingo.env.get_template(template).render(context)

  File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/demos/templates/demos/elements/submission_listing.html", line 6, in top-level template code
    <p class="count">{{ ngettext('{count} Demo', '{count} Demos', count) | f(count=paginator.count) }}</p>

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/tower/tower/__init__.py", line 38, in ungettext
    ret = django_nugettext(singular, plural, number)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/utils/translation/__init__.py", line 58, in ungettext
    return real_ungettext(singular, plural, number)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/utils/functional.py", line 55, in _curried
    return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/utils/translation/__init__.py", line 36, in delayed_loader
    return getattr(trans, real_name)(*args, **kwargs)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/utils/translation/trans_real.py", line 310, in ungettext
    return do_ntranslate(singular, plural, number, 'ungettext')

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/utils/translation/trans_real.py", line 292, in do_ntranslate
    return getattr(t, translation_function)(singular, plural, number)

  File "/usr/lib/python2.6/gettext.py", line 411, in ungettext
    tmsg = self._catalog[(msgid1, self.plural(n))]

  File "<string>", line 1, in <lambda>

UndefinedError: 'count' is undefined
(Reporter)

Updated

7 years ago
Whiteboard: [fuzzer]
Whiteboard: [fuzzer] → [fuzzer] c=bug p=1
Priority: -- → P1
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Comment 1

7 years ago
Verified FIXED on https://developer-stage9.mozilla.org/fr/demos/all/
Status: RESOLVED → VERIFIED
(Assignee)

Updated

6 years ago
Version: Kuma → unspecified
(Assignee)

Updated

6 years ago
Component: Website → Landing pages
Product: Mozilla Developer Network → Mozilla Developer Network
You need to log in before you can comment on or make changes to this bug.