[Plone-IT] Problema Portaltop - Eccezione

Giacomo Spettoli giacomo.spettoli a gmail.com
Gio 4 Ago 2011 20:01:44 UTC


On 04/08/2011 18:43, Diego Purpo wrote:
> Ciao a tutti.
>
> Ho un problema su un Plone4 appena messo in esercizio.
> Si tratta di una migrazione da Plone3.
> Nell'area di test tutto ha funzionato perfettamente, messo in 
> produzione il tema classic che usiamo come pannello di controllo 
> genera eccezione (segue trace).
>
> Da quanto per ora ho visto, sembra che una viewlet in *plone.portaltop 
> *produca un qualche errore, ma non riesco a risalire a quale, 
> precisamente.
> Mi potete essere di supporto?
>
> Grazie
>
> Diego
> *
> **
> *2011-08-04T18:36:08 ERROR Zope.SiteErrorLog 
> 1312475768.950.146608702441 http://admin.xxxx.com/front-page/document_view
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 127, in publish
>   Module ZPublisher.mapply, line 77, in mapply
>   Module ZPublisher.Publish, line 47, in call_object
>   Module Shared.DC.Scripts.Bindings, line 324, in __call__
>   Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
>   Module Products.CMFCore.FSPageTemplate, line 240, in _exec
>   Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
>   Module Products.PageTemplates.PageTemplate, line 80, in pt_render
>   Module zope.pagetemplate.pagetemplate, line 113, in pt_render
>   Module zope.tal.talinterpreter, line 271, in __call__
>   Module zope.tal.talinterpreter, line 343, in interpret
>   Module zope.tal.talinterpreter, line 888, in do_useMacro
>   Module zope.tal.talinterpreter, line 343, in interpret
>   Module zope.tal.talinterpreter, line 533, in do_optTag_tal
>   Module zope.tal.talinterpreter, line 518, in do_optTag
>   Module zope.tal.talinterpreter, line 513, in no_tag
>   Module zope.tal.talinterpreter, line 343, in interpret
>   Module zope.tal.talinterpreter, line 852, in do_condition
>   Module zope.tal.talinterpreter, line 343, in interpret
>   Module zope.tal.talinterpreter, line 531, in do_optTag_tal
>   Module zope.tal.talinterpreter, line 513, in no_tag
>   Module zope.tal.talinterpreter, line 343, in interpret
>   Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
>   Module Products.PageTemplates.Expressions, line 220, in 
> evaluateStructure
>   Module zope.tales.tales, line 696, in evaluate
>    - URL: 
> file:/opt/plone-4.0.5/buildout-cache/eggs/Plone-4.0.5-py2.6.egg/Products/CMFPlone/skins/plone_templates/main_template.pt
>    - Line 80, Column 8
>    - Expression: <StringExpr u'plone.portaltop'>
>    - Names:
>       {'container': <PloneSite at /Plone>,
>        'context': <ATDocument at /Plone/front-page>,
>        'default': <object object at 0x2ae493a73ae0>,
>        'here': <ATDocument at /Plone/front-page>,
>        'loop': {},
>        'nothing': None,
>        'options': {'args': ()},
>        'repeat': <Products.PageTemplates.Expressions.SafeMapping 
> object at 0x1a551838>,
>        'request': <HTTPRequest, 
> URL=http://admin.xxx.com/front-page/document_view>,
>        'root': <Application at >,
>        'template': <FSPageTemplate at /Plone/document_view used for 
> /Plone/front-page>,
>        'traverse_subpath': [],
>        'user': <SpecialUser 'Anonymous User'>}
>   Module zope.contentprovider.tales, line 80, in __call__
>   Module plone.app.viewletmanager.manager, line 154, in render
>   Module plone.app.viewletmanager.manager, line 85, in render
>   Module zope.viewlet.viewlet, line 59, in render
> AttributeError: render
> ------
> 2011-08-04T18:36:09 ERROR root Exception while rendering an error message
> Traceback (most recent call last):
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Zope2-2.12.17-py2.6-linux-x86_64.egg/OFS/SimpleItem.py", 
> line 254, in raise_standardErrorMessage
>     v = s(**kwargs)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Products.CMFCore-2.2.4-py2.6.egg/Products/CMFCore/FSPythonScript.py", 
> line 130, in __call__
>     return Script.__call__(self, *args, **kw)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Zope2-2.12.17-py2.6-linux-x86_64.egg/Shared/DC/Scripts/Bindings.py", 
> line 324, in __call__
>     return self._bindAndExec(args, kw, None)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Zope2-2.12.17-py2.6-linux-x86_64.egg/Shared/DC/Scripts/Bindings.py", 
> line 361, in _bindAndExec
>     return self._exec(bound_data, args, kw)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Zope2-2.12.17-py2.6-linux-x86_64.egg/Products/PythonScripts/PythonScript.py", 
> line 344, in _exec
>     result = f(*args, **kw)
>   File "Script (Python)", line 34, in standard_error_message
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Zope2-2.12.17-py2.6-linux-x86_64.egg/Shared/DC/Scripts/Bindings.py", 
> line 324, in __call__
>     return self._bindAndExec(args, kw, None)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Zope2-2.12.17-py2.6-linux-x86_64.egg/Shared/DC/Scripts/Bindings.py", 
> line 361, in _bindAndExec
>     return self._exec(bound_data, args, kw)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Products.CMFCore-2.2.4-py2.6.egg/Products/CMFCore/FSPageTemplate.py", 
> line 240, in _exec
>     result = self.pt_render(extra_context=bound_names)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Products.CMFCore-2.2.4-py2.6.egg/Products/CMFCore/FSPageTemplate.py", 
> line 180, in pt_render
>     self, source, extra_context
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Zope2-2.12.17-py2.6-linux-x86_64.egg/Products/PageTemplates/PageTemplate.py", 
> line 80, in pt_render
>     showtal=showtal)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.pagetemplate-3.5.2-py2.6.egg/zope/pagetemplate/pagetemplate.py", 
> line 113, in pt_render
>     strictinsert=0, sourceAnnotations=sourceAnnotations)()
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 271, in __call__
>     self.interpret(self.program)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 343, in interpret
>     handlers[opcode](self, args)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 888, in do_useMacro
>     self.interpret(macro)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 343, in interpret
>     handlers[opcode](self, args)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 533, in do_optTag_tal
>     self.do_optTag(stuff)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 518, in do_optTag
>     return self.no_tag(start, program)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 513, in no_tag
>     self.interpret(program)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 343, in interpret
>     handlers[opcode](self, args)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 852, in do_condition
>     self.interpret(block)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 343, in interpret
>     handlers[opcode](self, args)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 531, in do_optTag_tal
>     self.no_tag(stuff[-2], stuff[-1])
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 513, in no_tag
>     self.interpret(program)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 343, in interpret
>     handlers[opcode](self, args)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tal-3.5.2-py2.6.egg/zope/tal/talinterpreter.py", 
> line 742, in do_insertStructure_tal
>     structure = self.engine.evaluateStructure(expr)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/Zope2-2.12.17-py2.6-linux-x86_64.egg/Products/PageTemplates/Expressions.py", 
> line 220, in evaluateStructure
>     text = super(ZopeContext, self).evaluateStructure(expr)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.tales-3.4.0-py2.6.egg/zope/tales/tales.py", 
> line 696, in evaluate
>     return expression(self)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.contentprovider-3.5.0-py2.6.egg/zope/contentprovider/tales.py", 
> line 80, in __call__
>     return provider.render()
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/plone.app.viewletmanager-2.0.1-py2.6.egg/plone/app/viewletmanager/manager.py", 
> line 154, in render
>     return BaseOrderedViewletManager.render(self)
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/plone.app.viewletmanager-2.0.1-py2.6.egg/plone/app/viewletmanager/manager.py", 
> line 85, in render
>     return u'\n'.join([viewlet.render() for viewlet in self.viewlets])
>   File 
> "/opt/plone-4.0.5/buildout-cache/eggs/zope.viewlet-3.6.1-py2.6.egg/zope/viewlet/viewlet.py", 
> line 59, in render
>     raise AttributeError("render")
> AttributeError: render
>
> -- 
>
> *Diego Purpo*
> cel. +39 393 9869631
> diego.purpo a infocube.it <mailto:diego.purpo a infocube.it>
>
> *INFOCUBE srl*
> via gino doria, 84 | 80128 napoli
> tel. +39 081 3412051 | fax. +39 081 19305669
> p.iva 05808481211 | c.f. 05808481211 | rea NA 0777171
> www.infocube.it <http://www.infocube.it>
> blog.infocube.it <http://blog.infocube.it>
>
>
>
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-plone-it
> http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html
Ciao,
     potresti provare a mettere un pdb qui:
/opt/plone-4.0.5/buildout-cache/eggs/zope.viewlet-3.6.1-py2.6.egg/zope/viewlet/viewlet.py:59
e fare "continue" fino a trovare quale view non ha l'attributo renderer.

ciao,
Giacomo

-- 
Giacomo Spettoli

twitter: http://twitter.com/giacomospettoli
linkedin: http://linkedin.com/in/giacomospettoli
company site: http://redomino.com
blog: http://www.spettoli.com

-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20110804/7daf2a58/attachment-0001.html>


Maggiori informazioni sulla lista Plone-IT