Opened 3 years ago

Last modified 3 years ago

user story #56 (new)

admin iterations page missing after install

Test Complete Size: undefined Test Complete Date:
Documentation Complete Size: undefined Documentation Complete Date:
Acceptance Complete Size: undefined Acceptance Complete Date:
Reported by: achmed Owned by: ja11sop
Milestone: Undecided Component: agiletracplugin
Version: Keywords:
Cc: achmed@… Blocked By:
Patch SVN Revision: Patch Trac Version:
Blocking:
In Iterations: None

Description

I get this in the Admin -> Iterations page:

Trac detected an internal error:

TemplateNotFound?: Template "admin_iterations.html" not found

If you think this should work you can reproduce the problem, you should consider reporting this to the Trac team.

Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac, please try the mailing list instead of filing a ticket.

Otherwise, please ==== How to Reproduce ==== While doing a GET operation on /admin/ticket/iterations, Trac issued an internal error. (please provide additional details here) Request parameters: {'cat_id': u'ticket', 'panel_id': u'iterations', 'path_info': None} User Agent was: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.2) Gecko/2008092318 Fedora/3.0.2-1.fc9 Firefox/3.0.2 ==== System Information ==== Trac 0.11.1 Python 2.4.4 (#2, Apr 15 2008, 23:43:20)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] setuptools 0.6c9 psycopg2 2.0.5.1 (dec mx dt ext pq3) Genshi 0.5.1 Subversion 1.4.2 (r22196) jQuery: 1.2.6 ==== Python Traceback ==== Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/main.py", line 423, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/main.py", line 219, in dispatch data, content_type) File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/chrome.py", line 683, in render_template template = self.load_template(filename, method=method) File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/chrome.py", line 667, in load_template return self.templates.load(filename, cls=cls) File "/usr/lib/python2.4/site-packages/Genshi-0.5.1-py2.4-linux-i686.egg/genshi/template/loader.py", line 237, in load TemplateNotFound: Template "admin_iterations.html" not found a new ticket at the Trac project site, where you can describe the problem and explain how to reproduce it. Python Traceback Most recent call last:

  • File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/main.py", line 423, in _dispatch_request Code fragment:
    1. try:
    2. if not env and env_error:
    3. raise HTTPInternalError(env_error)
    4. try:
    5. dispatcher = RequestDispatcher?(env)
    6. dispatcher.dispatch(req)
    7. except RequestDone?:
    8. pass
    9. resp = req._response or []
    10. except HTTPException, e:
  • Local variables: Name Value after [u' except RequestDone:', u' pass', u' resp = ... before [u' try:', u' if not env and env_error:', u' raise ... dispatcher <trac.web.main.RequestDispatcher? object at 0xb74c15ac> e <genshi.template.loader.TemplateNotFound? instance at 0xb6e7f3ac> env <trac.env.Environment object at 0xb7d71f8c> env_error None exc_info (<class genshi.template.loader.TemplateNotFound? at 0xb7a64ecc>, ... filename '/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/main.py' frames [{'function': '_dispatch_request', 'lines_before': [u' try:', u' ... has_admin True line u' dispatcher.dispatch(req)' lineno 422 message u'TemplateNotFound?: Template "admin_iterations.html" not found' req <Request "GET u'/admin/ticket/iterations'"> resp [] tb <traceback object at 0xb6e815a4> tb_hide None traceback 'Traceback (most recent call last):\n File ...
  • File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/main.py", line 219, in dispatch Code fragment:
    1. out = StringIO()
    2. pprint(data, out)
    3. req.send(out.getvalue(), 'text/plain')
    4. else:
    5. output = chrome.render_template(req, template,
    6. data, content_type)
    7. # Give the session a chance to persist changes
    8. if req.session:
    9. req.session.save()
    10. req.send(output, content_type or 'text/html')
  • Local variables: Name Value chosen_handler <trac.admin.web_ui.AdminModule? object at 0xb74c192c> chrome <trac.web.chrome.Chrome object at 0xb7657a4c> content_type None data {'dateinfo': <function dateinfo at 0xb6e7864c>, 'active_panel': ... err (<class genshi.template.loader.TemplateNotFound? at 0xb7a64ecc>, ... handler <trac.admin.web_ui.AdminModule? object at 0xb74c192c> req <Request "GET u'/admin/ticket/iterations'"> resp ('admin_iterations.html', {'dateinfo': <function dateinfo at 0xb6e7864c>, ... self <trac.web.main.RequestDispatcher? object at 0xb74c15ac> template 'admin_iterations.html'
  • File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/chrome.py", line 683, in render_template Code fragment:
    1. if content_type is None:
    2. content_type = 'text/html'
    3. method = {'text/html': 'xhtml',
    4. 'text/plain': 'text'}.get(content_type, 'xml')
    5. template = self.load_template(filename, method=method)
    6. data = self.populate_data(req, data)
    7. stream = template.generate(**data)
    8. # Filter through ITemplateStreamFilter plugins
  • Local variables: Name Value content_type 'text/html' data {'dateinfo': <function dateinfo at 0xb6e7864c>, 'active_panel': ... filename 'admin_iterations.html' fragment False method 'xhtml' req <Request "GET u'/admin/ticket/iterations'"> self <trac.web.chrome.Chrome object at 0xb7657a4c>
  • File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/chrome.py", line 667, in load_template Code fragment:
    1. if method == 'text':
    2. cls = TextTemplate?
    3. else:
    4. cls = MarkupTemplate?
    5. return self.templates.load(filename, cls=cls)
    6. def render_template(self, req, filename, data, content_type=None,
    7. fragment=False):
    8. """Render the filename using the data for the context.
  • Local variables: Name Value cls <class 'genshi.template.markup.MarkupTemplate?'> filename 'admin_iterations.html' method 'xhtml' self <trac.web.chrome.Chrome object at 0xb7657a4c>
  • File "/usr/lib/python2.4/site-packages/Genshi-0.5.1-py2.4-linux-i686.egg/genshi/template/loader.py", line 237, in load

Change History

Have a look at the list of modified files related to this ticket.

Changed 3 years ago by ja11sop

Can you check three things for me?

  1. Is the plugin actually enabled (in addition to your trac install being patched and the plugin being installed)? It must be first enabled in the <trac-env>/conf/trac.ini file.
  2. Is this install on a clean trac environment or an existing one, already populated with tickets? It currently does not upgrade tickets to work with the plugin.
  3. Finally did you patch using the correct version, 0.11.1 in your case I believe. The 0.ii patch will not work.

Thanks, ja11sop

Note: See TracTickets for help on using tickets.