[traceback] TemplateSyntaxError: Encountered unknown tag 'url'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.

VERIFIED FIXED

Status

--
critical
VERIFIED FIXED
7 years ago
4 years ago

People

(Reporter: stephend, Unassigned)

Tracking

({regression})

Details

(URL)

(Reporter)

Description

7 years ago
https://builder-addons-dev.allizom.org/libraries/ bombs out:

Traceback (most recent call last):

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/apps/jetpack/views.py", line 87, in browser
    'other_packages_number': other_packages_number

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/utils/helpers.py", line 41, in render
    *args, **kwargs)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/django/shortcuts/__init__.py", line 20, in render_to_response
    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/django/template/loader.py", line 181, in render_to_string
    t = get_template(template_name)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/django/template/loader.py", line 157, in get_template
    template, origin = find_template(template_name)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/django/template/loader.py", line 134, in find_template
    source, display_name = loader(name, dirs)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/django/template/loader.py", line 42, in __call__
    return self.load_template(template_name, template_dirs)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/src/jingo/jingo/__init__.py", line 202, in load_template
    template = env.get_template(template_name)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/src/jingo/jingo/__init__.py", line 29, in get_template
    return super(Environment, self).get_template(name, parent, globals)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/jinja2/environment.py", line 716, in get_template
    return self._load_template(name, self.make_globals(globals))

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/jinja2/environment.py", line 690, in _load_template
    template = self.loader.load(self, name, globals)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/jinja2/loaders.py", line 127, in load
    code = environment.compile(source, name, filename)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/vendor/lib/python/jinja2/environment.py", line 492, in compile
    self.handle_exception(exc_info, source_hint=source)

  File "/data/www/builder-addons-dev.allizom.org/flightdeck/apps/jetpack/templates/package_browser_libraries.html", line 27, in template
    <a title="" href="{% url('jp_browser_libraries_page', pager.next_page_number() ) }}">Next</a>

TemplateSyntaxError: Encountered unknown tag 'url'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.
Assignee: nobody → aschaar
Fixed.

https://github.com/mozilla/FlightDeck/pull/56
Assignee: aschaar → nobody
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

7 years ago
Verified FIXED on https://builder-addons-dev.allizom.org/libraries/.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.