|
|
|
|
sreid
()
|
|
||||||||||||
|
Plone Version Overview
* Plone 3.3.1 * CMF 2.1.2 * Zope (Zope 2.10.9-final, python 2.4.3, linux2) * Python 2.4.3 (#1, Jul 27 2009, 17:57:39) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] * PIL 1.1.6 If I try to access a non-existant page, I correctly get the standard error message page, however, it's not rendered properly. It appears as below, and the error log is also attached. This used to work until recently. ----------------------------------------------------------------------------------------- <h2>Site Error</h2> <p>An error was encountered while publishing this resource. </p> <p><strong>Resource not found</strong></p> Sorry, the requested resource does not exist.<p>Check the URL and try again.</p><p>Resource: http://xxx/testpage</p> <hr noshade="noshade"/> <p>Troubleshooting Suggestions</p> <ul> <li>The URL may be incorrect.</li> <li>The parameters passed to this resource may be incorrect.</li> <li>A resource that this resource relies on may be encountering an error.</li> </ul> <p>For more detailed information about the error, please refer to the error log. </p> <p>If the error persists please contact the site maintainer. Thank you for your patience. </p> (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: ) ----------------------------------------------------------------------------------------- 2009-10-26T11:05:11 ERROR Zope.SiteErrorLog 1256555111.490.660494502553 http://xxx/testpage Traceback (innermost last): Module ZPublisher.Publish, line 110, in publish Module ZPublisher.BaseRequest, line 504, in traverse Module ZPublisher.HTTPResponse, line 676, in notFoundError NotFound: <h2>Site Error</h2> <p>An error was encountered while publishing this resource. </p> <p><strong>Resource not found</strong></p> Sorry, the requested resource does not exist.<p>Check the URL and try again.</p><p>Resource: http://xxx/testpage</p> <hr noshade="noshade"/> <p>Troubleshooting Suggestions</p> <ul> <li>The URL may be incorrect.</li> <li>The parameters passed to this resource may be incorrect.</li> <li>A resource that this resource relies on may be encountering an error.</li> </ul> <p>For more detailed information about the error, please refer to the error log. </p> <p>If the error persists please contact the site maintainer. Thank you for your patience. </p> ------ 2009-10-26T11:05:11 ERROR root Exception while rendering an error message Traceback (most recent call last): File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/OFS/SimpleItem.py", line 227, in raise_standardErrorMessage v = s(**kwargs) File "/home/xxx/webapps/zope/buildout/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/FSPythonScript.py", line 140, in __call__ return Script.__call__(self, *args, **kw) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__ return self._bindAndExec(args, kw, None) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec return self._exec(bound_data, args, kw) File "/home/xxx/webapps/zope/buildout/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/FSPythonScript.py", line 196, in _exec result = f(*args, **kw) File "Script (Python)", line 34, in standard_error_message File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__ return self._bindAndExec(args, kw, None) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec return self._exec(bound_data, args, kw) File "/home/xxx/webapps/zope/buildout/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/FSPageTemplate.py", line 216, in _exec result = self.pt_render(extra_context=bound_names) File "/home/xxx/webapps/zope/buildout/eggs/Products.CacheSetup-1.2.1-py2.4.egg/Products/CacheSetup/patch_cmf.py", line 51, in FSPT_pt_render result = FSPageTemplate.inheritedAttribute('pt_render')( File "/home/xxx/webapps/zope/buildout/eggs/Products.CacheSetup-1.2.1-py2.4.egg/Products/CacheSetup/patch_cmf.py", line 126, in PT_pt_render tal=not source, strictinsert=0)() File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 271, in __call__ self.interpret(self.program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 346, in interpret handlers[opcode](self, args) File "/home/xxx/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 891, in do_useMacro self.interpret(macro) File "/home/xxx/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 346, in interpret handlers[opcode](self, args) File "/home/xxx/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 536, in do_optTag_tal self.do_optTag(stuff) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 521, in do_optTag return self.no_tag(start, program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 516, in no_tag self.interpret(program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 346, in interpret handlers[opcode](self, args) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 534, in do_optTag_tal self.no_tag(stuff[-2], stuff[-1]) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 516, in no_tag self.interpret(program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 346, in interpret handlers[opcode](self, args) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 745, in do_insertStructure_tal structure = self.engine.evaluateStructure(expr) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Products/PageTemplates/Expressions.py", line 223, in evaluateStructure text = super(ZopeContext, self).evaluateStructure(expr) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tales/tales.py", line 696, in evaluate return expression(self) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Products/Five/browser/providerexpression.py", line 37, in __call__ return provider.render() File "/home/xxx/webapps/zope/buildout/eggs/plone.app.viewletmanager-1.2.2-py2.4.egg/plone/app/viewletmanager/manager.py", line 83, in render return u'\n'.join([viewlet.render() for viewlet in self.viewlets]) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/app/pagetemplate/simpleviewclass.py", line 44, in __call__ return self.index(*args, **kw) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__ return self._bindAndExec(args, kw, None) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec return self._exec(bound_data, args, kw) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Products/PageTemplates/PageTemplateFile.py", line 129, in _exec return self.pt_render(extra_context=bound_names) File "/home/xxx/webapps/zope/buildout/eggs/Products.CacheSetup-1.2.1-py2.4.egg/Products/CacheSetup/patch_cmf.py", line 126, in PT_pt_render tal=not source, strictinsert=0)() File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 271, in __call__ self.interpret(self.program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 346, in interpret handlers[opcode](self, args) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 536, in do_optTag_tal self.do_optTag(stuff) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 521, in do_optTag return self.no_tag(start, program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 516, in no_tag self.interpret(program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 346, in interpret handlers[opcode](self, args) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 534, in do_optTag_tal self.no_tag(stuff[-2], stuff[-1]) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 516, in no_tag self.interpret(program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 346, in interpret handlers[opcode](self, args) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 745, in do_insertStructure_tal structure = self.engine.evaluateStructure(expr) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Products/PageTemplates/Expressions.py", line 223, in evaluateStructure text = super(ZopeContext, self).evaluateStructure(expr) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tales/tales.py", line 696, in evaluate return expression(self) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Products/Five/browser/providerexpression.py", line 37, in __call__ return provider.render() File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/viewlet/manager.py", line 110, in render return self.template(viewlets=self.viewlets) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__ return self._bindAndExec(args, kw, None) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec return self._exec(bound_data, args, kw) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Products/PageTemplates/PageTemplateFile.py", line 129, in _exec return self.pt_render(extra_context=bound_names) File "/home/xxx/webapps/zope/buildout/eggs/Products.CacheSetup-1.2.1-py2.4.egg/Products/CacheSetup/patch_cmf.py", line 126, in PT_pt_render tal=not source, strictinsert=0)() File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 271, in __call__ self.interpret(self.program) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 346, in interpret handlers[opcode](self, args) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tal/talinterpreter.py", line 822, in do_loop_tal iterator = self.engine.setRepeat(name, expr) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tales/tales.py", line 682, in setRepeat expr = self.evaluate(expr) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tales/tales.py", line 696, in evaluate return expression(self) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/zope/tales/expressions.py", line 217, in __call__ return self._eval(econtext) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Products/PageTemplates/Expressions.py", line 163, in _eval return render(ob, econtext.vars) File "/home/xxx/webapps/zope/buildout/parts/zope2/lib/python/Products/PageTemplates/Expressions.py", line 125, in render ob = ob() File "/home/xxx/webapps/zope/buildout/eggs/Products.ResourceRegistries-1.5.3-py2.4.egg/Products/ResourceRegistries/browser/scripts.py", line 27, in scripts content = registry.getInlineResource(script.getId(), context) File "/home/xxx/webapps/zope/buildout/eggs/Products.ResourceRegistries-1.5.3-py2.4.egg/Products/ResourceRegistries/tools/BaseRegistry.py", line 841, in getInlineResource output = self.getResourceContent(item, context) File "/home/xxx/webapps/zope/buildout/eggs/Products.ResourceRegistries-1.5.3-py2.4.egg/Products/ResourceRegistries/tools/JSRegistry.py", line 252, in getResourceContent output = BaseRegistryTool.getResourceContent(self, item, context, original) File "/home/xxx/webapps/zope/buildout/eggs/Products.ResourceRegistries-1.5.3-py2.4.egg/Products/ResourceRegistries/tools/BaseRegistry.py", line 603, in getResourceContent assert int(self.REQUEST.RESPONSE.getStatus()) / 100 == 2 AssertionError |
||||||||||||||
|
|
Dieter Maurer
()
|
|
||||||||||||
|
sreid wrote at 2009-10-26 05:24 -0700:
> >Plone Version Overview > > * Plone 3.3.1 > * CMF 2.1.2 > * Zope (Zope 2.10.9-final, python 2.4.3, linux2) > * Python 2.4.3 (#1, Jul 27 2009, 17:57:39) [GCC 4.1.2 20080704 (Red Hat >4.1.2-44)] > * PIL 1.1.6 > >If I try to access a non-existant page, I correctly get the standard error >message page, however, it's not rendered properly. It appears as below, and >the error log is also attached. This used to work until recently. Zope determines the error page in a peculiar (and sometimes surprising) way: When the error is detected, it starts with the currently traversed to object and looks upward (towards the root) for the error handling hooks. Depending on how far traversal has proceeded before the error occured, different error pages can be located. Especially, for wrong urls there is some probability that a surprising error page is used: the plone error page is only used, when the url get wrong only after the Plone site object is reached. -- Dieter ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
sreid
()
|
|
||||||||||||
|
I still don't understand how to correct this. I seem to get a correct plone error page, but as plain html, not rendered to appear as a standard plone page.
|
||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |