Modify

Opened 4 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)

CrystalXTheme-Error.JPG (110.8 KB) - added by iqbal.ha@… 4 years ago.
Error-Thrown
Plugins.JPG (80.0 KB) - added by iqbal.ha@… 4 years ago.
Plugins
trac.ini (11.4 KB) - added by iqbal.ha@… 4 years ago.
trac.ini

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by iqbal.ha@…

Attachment: CrystalXTheme-Error.JPG added

Error-Thrown

Changed 4 years ago by iqbal.ha@…

Attachment: Plugins.JPG added

Plugins

Changed 4 years ago by iqbal.ha@…

Attachment: trac.ini added

trac.ini

comment:1 Changed 3 years ago by rhills@…

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 3 years ago by Ryan J Ollos

The theme will need to be ported from Genshi to Jinja2 to work with Trac 1.4.

comment:3 Changed 3 years ago by Ryan J Ollos

Note there is no 1.4 tag on the project page since this plugin is not compatible with Trac 1.4.

comment:4 Changed 3 years ago by anonymous

comment:5 Changed 3 years ago by Ryan J Ollos

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 anonymous

Any other working example template like main trac.edgewall.org to test and modify ?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.