Peter Sanchez
petersanchez at gmail.com
Tue May 9 17:17:43 EDT 2006
On Tue, May 09, 2006 at 04:57:04PM -0400, Jim Gallacher wrote: > Peter Sanchez wrote: > >Hey all... > > > >I have been getting these errors more and more. I am sure they are > >related to my template files, but not sure what the error really means. > >Here it is (trimmed): > > > ><snip to the meat> > > > >PythonHandler mod_python.publisher: File > >"/usr/local/lib/python2.4/site-packages/mod_python/psp.py", line 213, in > >run\n exec code in global_scope > >PythonHandler mod_python.publisher: File > >"/home/ahcabron/data/templates/view_img.tmpl", line 160, in ?\n %> > > > ></snip> > > > >Now, line 160 in view_img.tmpl is literally "%>\n" and that's it. > > > >I am using mod_python.publisher, and mod_python.psp as my template > >engine. Can anyone help me out with this error msg and what it means? > >The next line in the traceback can be from any one of my templates, at > >various other line numbers. It isn't just in view_img.tmpl, it can be in > >any of my templates and always at a line where "%>\n" is all there is. > > > >Here is my environment info: > > > >Apache/2.0.54 (FreeBSD) PHP/4.4.0 mod_python/3.2.7 Python/2.4.1 > > Uhm, I think maybe you cut into the bone when trimming. You know, the > bit that says: > > InquisitionError: warning, wasn't expecting the Spanish Inquisition > > Or whatever. Otherwise we'd just be guessing. At this point all I can > say is that there is problem somewhere before line 160 in your template. :) Heh, sorry. Here is the entire error. It didn't seem like the other lines from the traceback were very useful. Here you go :) Tue May 09 14:06:08 2006] [error] [client 144.13.215.1004] PythonHandler mod_python.publisher: Traceback (most recent call last): http://www.ahcabron.com/view_cat?c=15&p=3 [Tue May 09 14:06:08 2006] [error] [client 144.13.215.104] PythonHandler mod_python.publisher: File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n res ult = object(req), referer: http://www.ahcabron.com/view_cat?c=15&p=3 [Tue May 09 14:06:08 2006] [error] [client 144.13.215.104] PythonHandler mod_python.publisher: File "/usr/local/lib/python2.4/site-packages/mod_python/publisher.py", line 213, in handler\n publishe d = publish_object(req, object), referer: http://www.ahcabron.com/view_cat?c=15&p=3 [Tue May 09 14:06:08 2006] [error] [client 144.13.215.104] PythonHandler mod_python.publisher: File "/usr/local/lib/python2.4/site-packages/mod_python/publisher.py", line 412, in publish_object\n r eturn publish_object(req,util.apply_fs_data(object, req.form, req=req)), referer: http://www.ahcabron.com/view_cat?c=15&p=3 [Tue May 09 14:06:08 2006] [error] [client 144.13.215.104] PythonHandler mod_python.publisher: File "/usr/local/lib/python2.4/site-packages/mod_python/publisher.py", line 453, in publish_object\n r esult = str(object), referer: http://www.ahcabron.com/view_cat?c=15&p=3 [Tue May 09 14:06:08 2006] [error] [client 144.13.215.104] PythonHandler mod_python.publisher: File "/usr/local/lib/python2.4/site-packages/mod_python/psp.py", line 233, in __str__\n self.run(), re ferer: http://www.ahcabron.com/view_cat?c=15&p=3 [Tue May 09 14:06:08 2006] [error] [client 144.13.215.104] PythonHandler mod_python.publisher: File "/usr/local/lib/python2.4/site-packages/mod_python/psp.py", line 213, in run\n exec code in globa l_scope, referer: http://www.ahcabron.com/view_cat?c=15&p=3 [Tue May 09 14:06:08 2006] [error] [client 144.13.215.104] PythonHandler mod_python.publisher: File "/home/ahcabron/data/templates/view_img.tmpl", line 160, in ?\n %>, referer: http://www.ahcabron. com/view_cat?c=15&p=3 [Tue May 09 14:06:08 2006] [error] [client 144.13.215.104] PythonHandler mod_python.publisher: IOError: Write failed, client closed connection., referer: http://www.ahcabron.com/view_cat?c=15&p=3 Hope this helps :) Thanks again! Peter > > Jim > > > > >
|