[Setup] Upgrading Plone site issues

Brian Sullivan briansullivan at gmail.com
Sat Dec 3 15:28:22 UTC 2005


I am in the process of trying to upgrade an existing Plone site running on
Plone 1.0.5 ( on (Zope 2.6.2 (binary release, python 2.1, win32-x86), python
2.1.3, win32)) to Plone 2.1.1 ( (Zope 2.8.4-final, python 2.3.5, win32)) and
have run into some difficulties.

It seems that the recommended Zope version for 2.1.1 is Zope 2.8.2. From
what I can tell though 2.8.4 is supposed to work and be a suitable base?

The first problem I run into is just in adding a test Plone site to the Zope
with no changes. When attempting to edit the home page of this I get the
following error:

Site error

This site encountered an error trying to fulfill your request. The errors
were:
 Error Type AttributeError Error Value referencebrowser_startupDirectory
Traceback:


Traceback (innermost last):
  Module ZPublisher.Publish, line 113, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 98,
in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line
42, in _call
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 188, in _exec
  Module Products.CMFCore.FSPageTemplate, line 127, in pt_render
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - <FSControllerPageTemplate at /CBWtest/atct_edit used for
/CBWtest/front-page>
  Module TAL.TALInterpreter, line 206, in __call__
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 742, in do_defineSlot
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 690, in do_defineMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 734, in do_defineSlot
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 690, in do_defineMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 742, in do_defineSlot
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 653, in do_loop_tal
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 711, in do_useMacro
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 677, in do_condition
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 426, in do_optTag_tal
  Module TAL.TALInterpreter, line 411, in do_optTag
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 677, in do_condition
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 424, in do_optTag_tal
  Module TAL.TALInterpreter, line 406, in no_tag
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 734, in do_defineSlot
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 477, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: file:ATReferenceBrowserWidget/skins/ATReferenceBrowserWidget/referencebrowser.pt
   - Line 124, Column 10
   - Expression: <PythonExpr here.referencebrowser_startupDirectory
(widget.startup_directory)>
   - Names:
      {'container': <PloneSite at /CBWtest>,
       'context': <ATDocument at /CBWtest/front-page>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x01104B98>,
       'here': <ATDocument at /CBWtest/front-page>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x05540C60>,
       'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0x010F2DC8>,
       'nothing': None,
       'options': {'args': (),
                   'state':
<Products.CMFFormController.ControllerState.ControllerState object at
0x05554090>},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0x05540C60>,
       'request': <HTTPRequest,
URL=http://n3.coursesbywire.com:8080/CBWtest/front-page/atct_edit>,
       'root': <Application at >,
       'template': <FSControllerPageTemplate at /CBWtest/atct_edit
used for /CBWtest/front-page>,
       'traverse_subpath': [],
       'user': Admin}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.referencebrowser_startupDirectory
(widget.startup_directory)
  Module Python expression "here.referencebrowser_startupDirectory
(widget.startup_directory)", line 1, in <expression>
AttributeError: referencebrowser_startupDirectory


Does anybody have any idea what the root cause is? I am not sure if this is
related to my subsequent woes or not.

What I am attempting to do for my upgrade is to export the existing Plone
site from the Zope 2.6.2 server and import it into the new Zope
2.8.2server. An attempt to import the site results in the following
error:

 Site Error

An error was encountered while publishing this resource.

*Error Type: AttributeError*
*Error Value: _length*

Traceback (innermost last):
  Module ZPublisher.Publish, line 113, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module OFS.ObjectManager, line 561, in manage_importObject
  Module OFS.ObjectManager, line 583, in _importObjectFromFile
  Module OFS.ObjectManager, line 293, in _setObject
  Module Products.CMFCore.CMFCatalogAware, line 186, in manage_afterAdd
  Module Products.CMFCore.CMFCatalogAware, line 222, in __recurse
  Module Products.CMFCore.CMFCatalogAware, line 185, in manage_afterAdd
  Module Products.CMFCore.CMFCatalogAware, line 50, in indexObject
  Module Products.CMFCore.CatalogTool, line 325, in indexObject
  Module Products.CMFCore.CatalogTool, line 315, in catalog_object
  Module Products.ZCatalog.ZCatalog, line 566, in catalog_object
  Module Products.ZCatalog.Catalog, line 360, in catalogObject
  Module Products.PluginIndexes.PathIndex.PathIndex, line 124, in index_object
AttributeError: _length

Most of the existing strategies/hits for importing old Plone sites talk
about using an existing data.fs (which I can't do -- I have different
servers with different content outside the plone site) or just cutting and
pasting content (which I can't do either).

Any ideas where to go next?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-setup/attachments/20051203/b06b8849/attachment-0002.html>


More information about the Setup mailing list