Closed Bug 672610 Opened 13 years ago Closed 12 years ago

[traceback] UndefinedError: 'count' is undefined

Categories

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

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Unassigned)

References

()

Details

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

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
Whiteboard: [fuzzer]
Whiteboard: [fuzzer] → [fuzzer] c=bug p=1
Priority: -- → P1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Version: Kuma → 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.