Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#2889 closed defect (fixed)

500 Internal error with TracEnvIndexTemplate set

Reported by: Pedro Algarvio, aka, s0undt3ch <ufs@…> Owned by: Christopher Lenz
Priority: high Milestone: 0.10
Component: web frontend/mod_python Version: devel
Severity: major Keywords:
Cc: ufs@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I'm using current trunk, ie, [3018], and when I set:

PythonOption TracEnvIndexTemplate "/var/trac/myTemplates/projects_index.cs"

I get:

[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):
[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n    result = object(req)
[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 86, in handler\n    gateway.run(dispatch_request)
[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/wsgi.py", line 87, in run\n    response = application(self.environ, self._start_response)
[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 247, in dispatch_request\n    env_paths)
[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 367, in send_project_index\n    req.display(template)
[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 317, in display\n    data = self.hdf.render(template)
[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 276, in render\n    template.parseFile(filename)
[Fri Mar 17 01:56:46 2006] [error] [client 10.1.0.2] PythonHandler trac.web.modpython_frontend: Error: Traceback (innermost last):\n  File "csparse.c", line 293, in cs_parse_file()\n  File "neo_hdf.c", line 1909, in hdf_search_path()\nNotFoundError: Path projects_index.cs not found\n

That template exists and it worked before I updated to trunk, unfortunatly I can't remember on which revision I was at Now, why am I getting this?

Attachments (0)

Change History (3)

comment:1 by Pedro Algarvio, aka, s0undt3ch <ufs@…>, 18 years ago

Still happens on r3281.

While not fixed, the option is to copy the projects_index.cs to /usr/share/trac/templates/

comment:2 by Christopher Lenz, 18 years ago

Milestone: 0.10
Severity: blockermajor
Status: newassigned

Yeah, found the issue here.

comment:3 by Christopher Lenz, 18 years ago

Resolution: fixed
Status: assignedclosed

Should be fixed in [3497].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.