Bug #196

error.log gets filled with "TemplateSyntaxError: Invalid block tag: 'trans', expected 'endblock'" every page call.

Added by Drezil 11 months ago. Updated 10 months ago.

Status:Closed Start date:Jun 24, 2012
Priority:Urgent Due date:
Assignee:johnfoo % Done:

0%

Category:i18n Spent time: 0.10 hour
Target version:2.1.0
Detected Version:2.0.5 Python Version:2.6

Description

Installation of ECM under Debian/squeeze (stable) yields errors in the error.log

page is working, though.

Gevent isn't working, because it cant do threaded database-stuff in the version maintained by debian/stable.

[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69] mod_wsgi (pid=25974): Exception occurred processing WSGI script '/home/hang0ver.tk/ecm-instance/wsgi/ecm.wsgi'.
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69] Traceback (most recent call last):
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/handlers/wsgi.py", line 241, in __call__
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     response = self.get_response(request)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/handlers/base.py", line 179, in get_response
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/handlers/base.py", line 228, in handle_uncaught_exception
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     return callback(request, **param_dict)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py", line 91, in _wrapped_view
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     response = view_func(request, *args, **kwargs)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/views/defaults.py", line 32, in server_error
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     t = loader.get_template(template_name) # You need to create a 500.html template.
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py", line 145, in get_template
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     template, origin = find_template(template_name)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py", line 134, in find_template
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     source, display_name = loader(name, dirs)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py", line 42, in __call__
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     return self.load_template(template_name, template_dirs)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py", line 48, in load_template
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     template = get_template_from_string(source, origin, template_name)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py", line 156, in get_template_from_string
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     return Template(source, origin, name)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/base.py", line 125, in __init__
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     self.nodelist = compile_string(template_string, origin)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/base.py", line 153, in compile_string
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     return parser.parse()
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/base.py", line 267, in parse
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     compiled_result = compile_func(self, token)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader_tags.py", line 214, in do_extends
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     nodelist = parser.parse()
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/base.py", line 267, in parse
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     compiled_result = compile_func(self, token)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader_tags.py", line 189, in do_block
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     nodelist = parser.parse(('endblock',))
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/base.py", line 265, in parse
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     self.invalid_block_tag(token, command, parse_until)
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]   File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/base.py", line 320, in invalid_block_tag
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69]     (command, get_text_list(["'%s'" % p for p in parse_until])))
[Sun Jun 24 01:07:26 2012] [error] [client 212.201.85.69] TemplateSyntaxError: Invalid block tag: 'trans', expected 'endblock'

History

#1 Updated by Drezil 11 months ago

Sorry. I misinterpreted some stuff.

It's only the CAPTCHA that is broken and yields to such errors.

Maybe a python-module isn't installed/configured properly?

#2 Updated by Drezil 11 months ago

#3 Updated by johnfoo 11 months ago

  • Category set to i18n
  • Status changed from New to In Progress
  • Assignee set to johnfoo
  • Priority changed from Low to Urgent
  • Target version set to 32

committed fixes for 404 and 500 templates.
not knowing the template complaining, it's gonna be hard to add the proper tag without checking every single templates :)

#4 Updated by Drezil 11 months ago

as far as i can see it were only those two.

let me do some shell-voodoo to find out :D

grep -l "trans" `find . -name "*.html"` > trans.txt
grep -l "i18n" `find . -name "*.html"` > i18n.txt
diff trans.txt i18n.txt

404 and 500 were the only ones.

#5 Updated by johnfoo 11 months ago

  • Status changed from In Progress to Resolved

fixed then. thanks.

#6 Updated by diabeteman 11 months ago

  • Target version changed from 32 to 2.1.0

#7 Updated by Drezil 10 months ago

  • Status changed from Resolved to Closed
  • Detected Version changed from to 2.0.5

Also available in: Atom PDF