Submitted by : 192.168.1.21 at: 2004-02-25T19:49:24+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Installed Plone 2 RC5.2 on Windows XP. Unarchived Zwiki-0.27.1 into the Data/Products directory. Restarted Zope and installed Zwiki using http://localhost/prefs_install_products_form. After that, went to the admin folder and tried to add a Wiki. Got this traceback:

 File "C:\software\Plone2_RC5.2\Data\Products\ZWiki\UI.py", line 384, in editform
   oldid=self.id())
 File "C:\software\Plone2_RC5.2\Zope\lib\python\Shared\DC\Scripts\Bindings.py", line 306, in __call__
   return self._bindAndExec(args, kw, None)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\Shared\DC\Scripts\Bindings.py", line 343, in _bindAndExec
   return self._exec(bound_data, args, kw)
 File "C:\software\Plone2_RC5.2\Data\Products\CMFCore\FSPageTemplate.py", line 191, in _exec
   result = self.pt_render(extra_context=bound_names)
 File "C:\software\Plone2_RC5.2\Data\Products\CMFCore\FSPageTemplate.py", line 124, in pt_render
   result = FSPageTemplate.inheritedAttribute('pt_render')(
 File "C:\software\Plone2_RC5.2\Zope\lib\python\Products\PageTemplates\PageTemplate.py", line 96, in pt_render
   tal=not source, strictinsert=0)()
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 189, in __call__
   self.interpret(self.program)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 233, in interpret
   handlers[opcode](self, args)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 663, in do_useMacro
   self.interpret(macro)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 233, in interpret
   handlers[opcode](self, args)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 408, in do_optTag_tal
   self.do_optTag(stuff)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 393, in do_optTag
   return self.no_tag(start, program)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 388, in no_tag
   self.interpret(program)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 233, in interpret
   handlers[opcode](self, args)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 663, in do_useMacro
   self.interpret(macro)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 233, in interpret
   handlers[opcode](self, args)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\TAL\TALInterpreter.py", line 459, in do_setLocal_tal
   self.engine.setLocal(name, self.engine.evaluateValue(expr))
 File "C:\software\Plone2_RC5.2\Zope\lib\python\Products\PageTemplates\TALES.py", line 220, in evaluate
   return expression(self)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\Products\PageTemplates\ZRPythonExpr.py", line 47, in __call__
   return eval(code, g, {})
 File "Python expression "portal.breadcrumbs(here)"", line 1, in
 File "C:\software\Plone2_RC5.2\Data\Products\CMFCore\FSPythonScript.py", line 104, in __call__
   return Script.__call__(self, *args, **kw)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\Shared\DC\Scripts\Bindings.py", line 306, in __call__
   return self._bindAndExec(args, kw, None)
 File "C:\software\Plone2_RC5.2\Zope\lib\python\Shared\DC\Scripts\Bindings.py", line 343, in _bindAndExec
   return self._exec(bound_data, args, kw)
 File "C:\software\Plone2_RC5.2\Data\Products\CMFCore\FSPythonScript.py", line 160, in _exec
   result = apply(f, args, kw)
 File "Script (Python)", line 45, in breadcrumbs
 File "C:\software\Plone2_RC5.2\Data\Products\CMFCore\URLTool.py", line 81, in getRelativeContentPath
   content_path = content.getPhysicalPath()
AttributeError: editformgetPhysicalPath

... --SimonMichael, Thu, 26 Feb 2004 19:28:26 -0800 reply

What is the admin folder ? Can you add a page in any other folder ?

... --Thu, 26 Feb 2004 20:13:33 -0800 reply

Sorry, I'm new to Zope and Plone, and no doubt I used the wrong term. The administrative user that I specified when I installed Plone was "admin". What I meant by "admin folder" was where I end up if I login to plone as "admin" and then flip from the "view" tab to the "contents" tab.

I also tried doing the same thing after logging in as a different user. After I flip to the "contents" tab and click "add new item", I'm presented with a list of item types that I can create. There's no Wiki type in that list.

... --SimonMichael, Thu, 26 Feb 2004 20:40:40 -0800 reply

You may have used the right term; I'm not familiar with plone installer's special setup. I'm wondering if you are trying to add the page in some special folder, like Control_Panel.

It sounds as if you're using both the ZMI and the Plone UI ?

Using the ZMI, both Add ZWiki and Add ZWiki Page should work. If they don't, add a folder and try them again within that folder.

Using the Plone UI, Wiki Page will appear in the add new item menu after you register Zwiki with your plone site - see Zwiki and Plone.

... --Thu, 26 Feb 2004 20:53:34 -0800 reply

Yes, using ZMI I can add a ZWiki and a Zwiki page.

When I'm logged into Plone as "admin", "Wiki Page" shows up on the "add new item" list, so I'm pretty sure that Zwiki is installed. When I select "Wiki Page", I get the above traceback. Despite the traceback, Plone does create the Wiki page, but the page gets an odd name, e.g. Wiki_Page.2004-02-26.5672597099. And if I try to edit the page after it's created, I get the same traceback.

Another data point: if I go to that Wiki page and then flip to the "history" tab, I get this error: "AttributeError?: diffgetPhysicalPath". Similarly, if I flip to the "backlinks" tab, I get this error: "AttributeError?: backlinksgetPhysicalPath".

getting clearer --simon, Fri, 27 Feb 2004 13:42:24 -0800 reply

Ok. Can you create other kinds of content object in that folder ? Can you create a subfolder there and create a wiki page inside it ? Can I access this site ? Are you doing virtual hosting, eg with SiteAccess? or VirtualHostMonster? ? Any other problems with the site that might indicate some kind of vhost/url/path-type configuration problem ?

property change --simon, Fri, 27 Feb 2004 13:43:38 -0800 reply

Title: 'IssueNo0721? AttributeError?: editformgetPhysicalPath' => 'IssueNo0721? AttributeError?: editformgetPhysicalPath while adding a page'

oh and --simon, Fri, 27 Feb 2004 13:45:49 -0800 reply

Was this one of those tracebacks with 'This wiki's editform template gave an error.' at the top of it ? If so, the latest zwiki cvs might give a more informative traceback.

... --Fri, 27 Feb 2004 13:58:20 -0800 reply

I didn't try every kind of content, but I can create and edit documents and images in that folder.

I can create a subfolder, and I can create/edit documents in the subfolder, but I get the same traceback when I try to create a Wiki page there.

Unfortunately, you can't access the site; it's on my laptop.

oh and --Fri, 27 Feb 2004 14:15:37 -0800 reply

Yes, it was a "editform template gave an error" exception. Here's the traceback from the zwiki cvs:

Module ZPublisher.Publish, line 163, in publish_module_standard
Module Products.PlacelessTranslationService.PatchStringIO, line 44, in new_publish
Module ZPublisher.Publish, line 127, in publish
Module Zope.App.startup, line 203, in zpublisher_exception_hook
Module ZPublisher.Publish, line 100, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 40, in call_object
Module Products.ZWiki.UI, line 353, in editform
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 191, in _exec
Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
<FSPageTemplate at /Plone/editform used for /Plone/Members/admin/Wiki_Page.2004-02-25.6980012184>
Module TAL.TALInterpreter, line 189, in __call__
Module TAL.TALInterpreter, line 233, in interpret
Module TAL.TALInterpreter, line 663, in do_useMacro
Module TAL.TALInterpreter, line 233, in interpret
Module TAL.TALInterpreter, line 408, in do_optTag_tal
Module TAL.TALInterpreter, line 393, in do_optTag
Module TAL.TALInterpreter, line 388, in no_tag
Module TAL.TALInterpreter, line 233, in interpret
Module TAL.TALInterpreter, line 663, in do_useMacro
Module TAL.TALInterpreter, line 233, in interpret
Module TAL.TALInterpreter, line 459, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 220, in evaluate
Line 77, Column 4
Expression: <PythonExpr portal.breadcrumbs(here)>
Names:
{'container': <PloneSite instance at 02D47590>,
 'context': <ZWikiPage at /Plone/Members/admin/Wiki_Page.2004-02-25.6980012184>,
 'default': <Products.PageTemplates.TALES.Default instance at 0x0197EE40>,
 'here': <ZWikiPage at /Plone/Members/admin/Wiki_Page.2004-02-25.6980012184>,
 'loop': <SafeMapping instance at 029FE190>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x01975AA8>,
 'nothing': None,
 'options': {'action': 'Change',
             'args': (<ZWikiPage at /Plone/Members/admin/Wiki_Page.2004-02-25.6980012184>,
                      <HTTPRequest, URL=http://localhost/Members/admin/Wiki_Page.2004-02-25.6980012184/editform>),
             'id': 'Wiki_Page.2004-02-25.6980012184',
             'oldid': 'Wiki_Page.2004-02-25.6980012184',
             'page': 'Wiki_Page.2004-02-25.6980012184',
             'text': ''},
 'repeat': <SafeMapping instance at 029FE190>,
 'request': <HTTPRequest, URL=http://localhost/Members/admin/Wiki_Page.2004-02-25.6980012184/editform>,
 'root': <Application instance at 02D33FB0>,
 'template': <FSPageTemplate at /Plone/editform used for /Plone/Members/admin/Wiki_Page.2004-02-25.6980012184>,
 'traverse_subpath': [],
 'user': admin}
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: portal.breadcrumbs(here)
Module Python expression "portal.breadcrumbs(here)", line 1, in <expression>
Module Products.CMFCore.FSPythonScript, line 104, in __call__
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 160, in _exec
Module None, line 45, in breadcrumbs
<FSPythonScript at /Plone/breadcrumbs>
Line 45
Module Products.CMFCore.URLTool, line 81, in getRelativeContentPath
AttributeError: editformgetPhysicalPath (Also, an error occurred while attempting to render the standard error message.)

property change --simon, Fri, 27 Feb 2004 14:24:51 -0800 reply

Title: 'IssueNo0721? AttributeError?: editformgetPhysicalPath while adding a page' => 'IssueNo0721? AttributeError?: editformgetPhysicalPath while adding a page (plone 2)'

oh and --SimonMichael, Fri, 27 Feb 2004 14:39:41 -0800 reply

Ah, thanks. Sometimes clearer presentation can make all the difference. After staring some more it looks like it's trying to getPhysicalPath on the editform template, when it should be doing getPhysicalPath on the page. What url is your browser showing when you get this ?

oh and --Fri, 27 Feb 2004 14:51:07 -0800 reply

The URL is http://localhost/zwiki123/editform. zwiki123 is the name of the Wiki page that I'm trying to edit.

oh and --Fri, 27 Feb 2004 15:11:42 -0800 reply

That last comment may have been confusing. The URL is http://localhost/ID-OF-EDITED-WIKI-PAGE/editform. For the last traceback I posted, the URL in the browser was http://localhost/Members/admin/Wiki_Page.2004-02-25.6980012184/editform.

oh and --Fri, 27 Feb 2004 15:14:37 -0800 reply

Ok, let me try that one more time. :-) The URL in the browser corresponds to what I see in the ZWiki CVS traceback in the request's URL property.

oh and --SimonMichael, Fri, 27 Feb 2004 15:27:24 -0800 reply

Got it. :) All sounds correct, I am stumped for the moment.

oh and --Sat, 28 Feb 2004 01:59:51 -0800 reply

I'm a software developer, and I have some familiarity with Python. Where should I look to try to narrow down the problem?

oh and --SimonMichael, Fri, 27 Feb 2004 19:56:02 -0800 reply

Try to narrow down why getPhysicalPath is getting called on editform instead of the page. I'd start at the bottom of the traceback and work back. It may be somewhere in those last 10 lines.

oh and --SimonMichael, Fri, 27 Feb 2004 20:00:37 -0800 reply

And, are you doing virtual hosting ? If so, try it without.

oh and --Fri, 27 Feb 2004 20:04:47 -0800 reply

No virtual hosting. My setup's really simple. I ran the Plone 2 RC5.2 Windows installer on my Windows XP laptop. The installer lays down both Plone and Zope. Then I unpacked the ZWiki bits into the Products directory and restarted Plone.

oh and --Mon, 01 Mar 2004 12:37:13 -0800 reply

Still using Plone 2 RC5.2, but upgraded to Zwiki 0.28RC1. I've narrowed it down this far. It looks as if ZWikiPage inherits an editform method from one of its parent classes. There's also an editform attribute, of type Products.CMFCore.FSPageTemplate?.FSPageTemplate?, that ZWikiPage inherits by acquisition from a parent object of type Products.CMFPlone?.Portal.PloneSite?.

Where should the editform attribute be defined, and what should its type be?

dont' use Plone 2 RC5.2 Windows installer --Thu, 04 Mar 2004 19:55:51 -0800 reply

It all started working once I went back and installed Zope 2.7, then CMF 1.4.2, then Plone 2 RC6, and Zwiki. I guess there was something goofy about the Plone 2 RC5.2 installer for Windows.

property change --Thu, 04 Mar 2004 19:56:15 -0800 reply

Status: open => closed