Submitted by : simon at: 2004-02-26T02:24:35+00:00 (13 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Traceback:

  File "/usr/local/zope/instance/Products/ZWiki/UI.py", line 193, in addSkinTo
    return folder.wikipage.__of__(self)(self,REQUEST,body=body,**kw)
  File "/usr/local/zope/2.7/lib/python/Shared/DC/Scripts/Bindings.py", line 306, in __call__
    return self._bindAndExec(args, kw, None)
  File "/usr/local/zope/2.7/lib/python/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File "/usr/local/zope/2.7/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 222, in _exec
    result = self.pt_render(extra_context=bound_names)
  File "/usr/local/zope/2.7/lib/python/Products/PageTemplates/PageTemplate.py", line 96, in pt_render
    tal=not source, strictinsert=0)()
  File "/usr/local/zope/2.7/lib/python/TAL/TALInterpreter.py", line 189, in __call__
    self.interpret(self.program)
  File "/usr/local/zope/2.7/lib/python/TAL/TALInterpreter.py", line 233, in interpret
    handlers[opcode](self, args)
  File "/usr/local/zope/2.7/lib/python/TAL/TALInterpreter.py", line 629, in do_condition
    self.interpret(block)
  File "/usr/local/zope/2.7/lib/python/TAL/TALInterpreter.py", line 233, in interpret
    handlers[opcode](self, args)
  File "/usr/local/zope/2.7/lib/python/TAL/TALInterpreter.py", line 561, in do_insertStructure_tal
    structure = self.engine.evaluateStructure(expr)
  File "/usr/local/zope/2.7/lib/python/Products/PageTemplates/TALES.py", line 220, in evaluate
    return expression(self)
  File "/usr/local/zope/2.7/lib/python/Products/PageTemplates/Expressions.py", line 201, in __call__
    return self._eval(econtext)
  File "/usr/local/zope/2.7/lib/python/Products/PageTemplates/Expressions.py", line 196, in _eval
    return render(ob, econtext.vars)
  File "/usr/local/zope/2.7/lib/python/Products/PageTemplates/Expressions.py", line 101, in render
    ob = call_with_ns(ob, ns, 2)
  File "/usr/local/zope/2.7/lib/python/Products/PageTemplates/ZRPythonExpr.py", line 71, in call_with_ns
    return f(None, td)
  File "/usr/local/zope/2.7/lib/python/OFS/DTMLMethod.py", line 123, in __call__
    r=apply(HTML.__call__, (self, client, REQUEST), kw)
  File "/usr/local/zope/2.7/lib/python/DocumentTemplate/DT_String.py", line 474, in __call__
    try: result = render_blocks(self._v_blocks, md)
  File "/usr/local/zope/2.7/lib/python/DocumentTemplate/DT_Let.py", line 75, in render
    else: d[name]=expr(md)
  File "/usr/local/zope/2.7/lib/python/DocumentTemplate/DT_Util.py", line 201, in eval
    return eval(code, d)
  File "", line 1, in 
  File "/usr/local/zope/2.7/lib/python/Products/ExternalMethod/ExternalMethod.py", line 205, in __call__
    raise RuntimeError,\
  RuntimeError: external method could not be called because it is None

To work around this: visit SOMEPAGE?zwiki_displaymode=simple then click the "simple" link.


comments:

aha --SimonMichael, Thu, 26 Feb 2004 19:47:01 -0800 reply
The problem here is that catching and displaying the skin template traceback completely obscures the cause of the error in this case (missing getrusage external method for the memoryusage dtml method called by the wikipage template). Zope 2.7, at least, now gives a far more useful traceback automatically. Time to simplify the code.

property change --SimonMichael, Thu, 26 Feb 2004 19:52:41 -0800 reply
Status: open => closed