Mailing List Archive

Missing formatting and cannot add attachments
Just stumbled onto two new problems.

After I have added a ticket, if I view that ticket, it ignores the path
specified for the htdocs. Once I accept the ticket, it then uses the htdocs
path defined in the trac.ini file.

The second is that when I click the "Attach File" button on an accepted
ticket, I am taken to a page and given the error message: Attachment not
found

I found the following in my Apache error log:

[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: Traceback (most recent call last):, referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: File
"/usr/local/lib/python2.3/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch\n result = object(req), referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: File
"/usr/local/lib/python2.3/site-packages/trac/ModPythonHandler.py", line 165,
in handler\n env = get_environment(req, mpr), referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: File
"/usr/local/lib/python2.3/site-packages/trac/ModPythonHandler.py", line 137,
in get_environment\n raise EnvironmentError, \\, referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: EnvironmentError: Missing PythonOption "TracEnv" or
"TracEnvParentDir". Trac requires one of these options to locate the Trac
environment(s)., referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: Traceback (most recent call last):, referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: File
"/usr/local/lib/python2.3/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch\n result = object(req), referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: File
"/usr/local/lib/python2.3/site-packages/trac/ModPythonHandler.py", line 165,
in handler\n env = get_environment(req, mpr), referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: File
"/usr/local/lib/python2.3/site-packages/trac/ModPythonHandler.py", line 137,
in get_environment\n raise EnvironmentError, \\, referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?
[Wed Jul 28 10:23:24 2004] [error] [client 10.0.0.14] PythonHandler
trac.ModPythonHandler: EnvironmentError: Missing PythonOption "TracEnv" or
"TracEnvParentDir". Trac requires one of these options to locate the Trac
environment(s)., referer:
https://10.0.0.1/trac/project/newticket/attachment/ticket/1?

It seems that for the most part, the errors are complaining that there is no
TracEnv set. Which is impossible since I have this all working in the first
place, and my Apache config didn't change and restart in the middle of the
request.

Steve