Broken page templates in 2.5.0
I have just installed a vanilla source build of Zope 2.5.0 and all the included page templates are broken. If I click on one in the ZMI, or call a page template page I get a PTRuntimeError with the following traceback: Traceback (innermost last): File /var/zope/2-5-0/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /var/zope/2-5-0/lib/python/ZPublisher/Publish.py, line 114, in publish File /var/zope/2-5-0/lib/python/Zope/__init__.py, line 158, in zpublisher_exception_hook (Object: Examples) File /var/zope/2-5-0/lib/python/ZPublisher/Publish.py, line 98, in publish File /var/zope/2-5-0/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: index_html) File /var/zope/2-5-0/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: index_html) File /var/zope/2-5-0/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: index_html) File /var/zope/2-5-0/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: index_html) File /var/zope/2-5-0/lib/python/Products/PageTemplates/ZopePageTemplate.py, line 207, in _exec (Object: index_html) File /var/zope/2-5-0/lib/python/Products/PageTemplates/PageTemplate.py, line 76, in pt_render (Object: index_html) PTRuntimeError: Page Template index_html has errors. Any ideas? cheers Ben ============== WideMedia Ltd PO Box 33052 London W9 2XE Tel: 020 7286 7660 www.widemedia.com
benpc@widemedia.com writes:
I have just installed a vanilla source build of Zope 2.5.0 and all the included page templates are broken. If I click on one in the ZMI, or call a page template page I get a PTRuntimeError with the following traceback:
Traceback (innermost last): .... (Object: index_html) File /var/zope/2-5-0/lib/python/Products/PageTemplates/PageTemplate.py, line 76, in pt_render (Object: index_html) PTRuntimeError: Page Template index_html has errors. There are people that do not want to read error messages ;-)
The error message tells you unambiguously: "Page Template index_html has errors". Thus, you should look at this page template to find out what errors it has... But maybe, I am a bit sarcastic: You report that you also get an error when you click at a page template. What error is that (it won't be "Page Template index_html has errors"!). Did you check the "Traceback" tab in "Control_Panel"->"Product Management" -> "Page Templates". It is good, if there is none. Dieter
participants (3)
-
benpc@widemedia.com -
Chris Withers -
Dieter Maurer