Corrupted ZPT Locks Me Out Of Folder
Somehow a ZPT got corrupted inside one of my Zope 2.62/RedHat 7.3 folders. Now when I try to use the ZMI to open the folder containing the ZPT I get: Site Error An error was encountered while publishing this resource. ImportError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 150, in publish_module Module ZPublisher.Publish, line 114, in publish Module Zope.App.startup, line 199, in zpublisher_exception_hook Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module App.special_dtml, line 174, in _exec Module DocumentTemplate.DT_In, line 705, in renderwob Module Products.PageTemplates.ZopePageTemplate, line 279, in om_icons Module Products.PageTemplates.PageTemplate, line 169, in _cook Module TAL.TALParser, line 27, in __init__ Module TAL.XMLParser, line 48, in __init__ Module TAL.XMLParser, line 72, in createParser I am able to view the other (non-corrupted) objects in the folder through the web. Now what? How do I delete the corrupted ZPT so I can use the ZMI to get into the folder?
On 3/23/07, Mark, Jonathan (Integic) <jonathan.mark@integic-hc.com> wrote:
Module TAL.XMLParser, line 48, in __init__ Module TAL.XMLParser, line 72, in createParser
Nothing got corrupted, your python lost it's expat XML parser: def createParser(self, encoding=None): global XMLParseError try: from Products.ParsedXML.Expat import pyexpat XMLParseError = pyexpat.ExpatError return pyexpat.ParserCreate(encoding, ' ') except ImportError: from xml.parsers import expat XMLParseError = expat.ExpatError return expat.ParserCreate(encoding, ' ') In other words, reinstall expat and your ZPT page will reappear. -- Martijn Pieters
participants (2)
-
Mark, Jonathan (Integic) -
Martijn Pieters