Opened 5 years ago
Last modified 3 years ago
#13761 new defect
TracCrystalXTheme not working in 1.4.1
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | highest | Component: | CrystalxTheme |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 1.4 |
Description
Tried TracCrystalXTheme in Trac 1.4.1. But as soon as it is enabled in the trac.ini, it throws error as shown in the attached snap-shot.
Attachments (3)
Change History (9)
Changed 5 years ago by
Attachment: | CrystalXTheme-Error.JPG added |
---|
comment:1 Changed 4 years ago by
I get this error too.
Unfortunately, putting the Traceback in a jpeg hides the error detail from search engines.
For the record, mine looks like this:
Traceback (most recent call last): File "/apps/trac/venv/lib/python2.7/site-packages/trac/web/main.py", line 684, in _send_error data, metadata) File "/apps/trac/venv/lib/python2.7/site-packages/trac/web/chrome.py", line 1443, in render_template fragment, iterable, method) File "/apps/trac/venv/lib/python2.7/site-packages/trac/web/chrome.py", line 1535, in _render_jinja_template iterable) File "/apps/trac/venv/lib/python2.7/site-packages/trac/web/chrome.py", line 1656, in generate_template_stream return b''.join(generate()) File "/apps/trac/venv/lib/python2.7/site-packages/trac/web/chrome.py", line 1654, in generate for chunk in stream: File "/apps/trac/venv/lib/python2.7/site-packages/jinja2/environment.py", line 1357, in __next__ return self._next() File "/apps/trac/venv/lib/python2.7/site-packages/jinja2/environment.py", line 1334, in _buffered_generator c = next(self._gen) File "/apps/trac/venv/lib/python2.7/site-packages/jinja2/environment.py", line 1125, in generate yield self.environment.handle_exception() File "/apps/trac/venv/lib/python2.7/site-packages/jinja2/environment.py", line 832, in handle_exception reraise(*rewrite_traceback_stack(source=source)) File "/apps/trac/venv/lib/python2.7/site-packages/trac/templates/error.html", line 95, in top-level template code <input type="submit" name="create" value="${_('Create')}" /> File "/apps/trac/venv/lib/python2.7/site-packages/trac/templates/layout.html", line 12, in top-level template code # import "macros.html" as jmacros with context File "/apps/trac/venv/lib/python2.7/site-packages/crystalxtheme/templates/crystalx_theme.html", line 13, in top-level template code class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}">${item.label}</li> File "/apps/trac/venv/lib/python2.7/site-packages/jinja2/environment.py", line 471, in getattr return getattr(obj, attribute) UndefinedError: 'item' is undefined
comment:2 Changed 4 years ago by
The theme will need to be ported from Genshi to Jinja2 to work with Trac 1.4.
comment:3 Changed 3 years ago by
Note there is no 1.4 tag on the project page since this plugin is not compatible with Trac 1.4.
comment:5 Changed 3 years ago by
Has not been ported.
Won't be unless someone takes an interest in it because the original maintainer is no longer around.
comment:6 Changed 3 years ago by
Any other working example template like main trac.edgewall.org to test and modify ?
Error-Thrown