Related
I'm upgrading an almost vanilla Plone from 2.1.3 to 3.0.6 (that's old stuff, I know). portal_migration successfully performs the migration, but then reports errors in rebuilding the catalog
End of upgrade path, migration has finished
Your ZODB and Filesystem Plone instances are now up-to-date.
Exception was thrown while cataloging
File "/home/applinet/local/intranet/plone/intranet/Products/CMFPlone/MigrationTool.py", line 262, in upgrade catalog.refreshCatalog(clear=1)
File "/home/applinet/local/intranet/plone/installation/lib/python/Products/ZCatalog/ZCatalog.py", line 281, in refreshCatalog cat.clear()
File "/home/applinet/local/intranet/plone/installation/lib/python/Products/ZCatalog/Catalog.py", line 108, in clear self.getIndex(index).clear()
Viewing the site fails with an exception in event.log that also seems catalog related:
2017-09-05T17:33:27 ERROR Zope.SiteErrorLog
http://stretch.fritz.box:49171/intranet/folder_listing
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 216, in _exec
Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
Module Products.PageTemplates.PageTemplate, line 89, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
- Warning: Macro expansion failed
- Warning: exceptions.KeyError: 'kss_generic_macros'
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
- URL: file:/home/applinet/local/intranet/plone/intranet/Products/CMFPlone/skins/plone_templates/global_defines.pt
- Line 8, Column 0
- Expression: <PathExpr standard:u'plone_view/globalize'>
- Names:
{'container': <PloneSite at /intranet>,
'context': <PloneSite at /intranet>,
'default': <object object at 0x7ff78a528200>,
'here': <PloneSite at /intranet>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7ff76027e758>,
'request': <HTTPRequest, URL=http://stretch.fritz.box:49171/intranet/folder_listing>,
'root': <Application at >,
'template': <FSPageTemplate at /intranet/folder_listing>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 161, in _eval
Module Products.PageTemplates.Expressions, line 123, in render
Module Products.CMFPlone.browser.ploneview, line 68, in globalize
Module Products.CMFPlone.browser.ploneview, line 125, in _initializeData
Module Products.CMFPlone.browser.navigation, line 182, in topLevelTabs
Module Products.ZCatalog.Lazy, line 158, in __getitem__
Module Products.ZCatalog.Catalog, line 127, in __getitem__
KeyError: 403495479
An attempt to update the catalog in ZMI > site > portal_catalog > Advanced also fails:
2017-09-05T18:05:03 ERROR Zope.SiteErrorLog http://stretch.fritz.box:49171/intranet/portal_catalog/manage_catalogReindex
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.ZCatalog.ZCatalog, line 260, in manage_catalogReindex
Module Products.ZCatalog.ZCatalog, line 281, in refreshCatalog
Module Products.ZCatalog.Catalog, line 108, in clear
AttributeError: clear
Any tips or ideas as to what may be causing this?
I found the problem. The list of indexes in the Plone Catalog Tool shows three indexes in broken state, because the product TextIndexNG3 was not installed.
I installed TextIndexNG3 3.2.5 and that solved it.
In my plone site, an error message in a folder, as below
POSKeyError('\x00\x00\x00\x00\x00\x00s\x10',) (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: s)
And, in client1/event.log, I can find the detail message as below:
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.dexterity.content, line 707, in manage_delObjects
Module OFS.ObjectManager, line 540, in manage_delObjects
Module Products.BTreeFolder2.BTreeFolder2, line 477, in _delObject
Module zope.event, line 31, in notify
Module zope.component.event, line 24, in dispatch
Module zope.component._api, line 136, in subscribers
Module zope.component.registry, line 321, in subscribers
Module zope.interface.adapter, line 585, in subscribers
Module zope.component.event, line 32, in objectEventNotify
Module zope.component._api, line 136, in subscribers
Module zope.component.registry, line 321, in subscribers
Module zope.interface.adapter, line 585, in subscribers
Module OFS.subscribers, line 101, in dispatchObjectWillBeMovedEvent
Module zope.container.contained, line 152, in dispatchToSublocations
Module OFS.subscribers, line 81, in sublocations
Module plone.folder.ordered, line 87, in objectValues
Module plone.folder.ordered, line 75, in objectIds
Module plone.folder.default, line 152, in idsInOrder
Module plone.folder.default, line 163, in _order
Module zope.annotation.attribute, line 44, in get
Module ZODB.Connection, line 860, in setstate
Module ZODB.Connection, line 901, in _setstate
Module ZEO.ClientStorage, line 833, in load
Module ZEO.ServerStub, line 176, in loadEx
Module ZEO.zrpc.connection, line 768, in call
POSKeyError: 0x7310
I have no idea to solve it, Any suggestions?
I solve this problem reference this post:
http://plonechix.blogspot.tw/2009/12/definitive-guide-to-poskeyerror.html
The complete operation like below,
Into the command line
bin/zopepy
And then,
from AccessControl.SecurityManagement import newSecurityManager
from Testing import makerequest
from ZODB import FileStorage, DB
import transaction
storage = FileStorage.FileStorage('path_to/Data.fs')
db = DB(storage)
connection = db.open()
root = connection.root()
app = root['Application']
admin = app.acl_users.getUserById('admin')
admin = admin.of(app.acl_users)
newSecurityManager(None, admin)
req=makerequest.makerequest(app.mysite.bad_folder)
req.manage_delObjects(['bad_content'])
transaction.commit()
At last, must be clear and rebuild catalog at portal_catalog in ZMI.
After moving my buildout from one server to another, along with the Data.fs and blobstorage directory
I'm starting to get the following error when I visit the site front page:
Error Type: AttributeError
Error Value: __getitem__
Here's the traceback:
2013-07-23 19:55:20 ERROR Zope.SiteErrorLog 1374602120.540.80110008228 http://myplonesite.org:19086/Plone
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.BaseRequest, line 437, in traverse
Module Products.CMFCore.PortalObject, line 78, in __before_publishing_traverse__
Module zope.event, line 23, in notify
Module zope.component._api, line 136, in subscribers
Module zope.component.registry, line 321, in subscribers
Module zope.component.event, line 32, in objectEventNotify
Module zope.component._api, line 136, in subscribers
Module zope.interface.adapter, line 583, in subscribers
Module plone.app.theming.plugins.hooks, line 37, in onRequest
AttributeError: __getitem__
2013-07-23 19:55:20 ERROR plone.subrequest Error handling subrequest to /++theme++ccrp-5.9/rules.xml
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.subrequest-1.6.7-py2.7.egg/plone/subrequest/__init_
_.py", line 116, in subrequest
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/Zope2-2.13.8-py2.7.egg/ZPublisher/BaseRequest.py", line 4
37, in traverse
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/Zope2-2.13.8-py2.7.egg/ZPublisher/BeforeTraverse.py", lin
e 97, in __call__
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/Products.CMFCore-2.2.4-py2.7.egg/Products/CMFCore/PortalO
bject.py", line 78, in __before_publishing_traverse__
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.event-3.5.0_1-py2.7.egg/zope/event/__init__.py", lin
e 23, in notify
subscriber(event)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/event.py",
line 24, in dispatch
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py", l
ine 136, in subscribers
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/registry.py
", line 321, in subscribers
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.interface-3.6.3-py2.7-linux-x86_64.egg/zope/interfac
subscription(*objects)
line 32, in objectEventNotify
zope.component.subscribers((event.object, event), None)
ine 136, in subscribers
return sitemanager.subscribers(objects, interface)
", line 321, in subscribers
return self.adapters.subscribers(objects, provided)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/zope.interface-3.6.3-py2.7-linux-x86_64.egg/zope/interfac
e/adapter.py", line 583, in subscribers
subscription(*objects)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.app.theming-1.1-py2.7.egg/plone/app/theming/plugins
/hooks.py", line 37, in onRequest
themeDirectory = queryResourceDirectory(THEME_RESOURCE_NAME, theme)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.resource-1.0.2-py2.7.egg/plone/resource/utils.py",
line 62, in queryResourceDirectory
AttributeError: __getitem__
2013-07-23 19:55:20 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.transformchain-1.0-py2.7.egg/plone/transformchain/t
ransformer.py", line 42, in __call__
newResult = handler.transformIterable(result, encoding)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.app.theming-1.1-py2.7.egg/plone/app/theming/transfo
rm.py", line 170, in transformIterable
transform = self.setupTransform(runtrace=runtrace)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.app.theming-1.1-py2.7.egg/plone/app/theming/transfo
rm.py", line 108, in setupTransform
transform = compileThemeTransform(rules, absolutePrefix, readNetwork, parameterExpressions, runtrace=runtrac
e)
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/plone.app.theming-1.1-py2.7.egg/plone/app/theming/utils.p
y", line 579, in compileThemeTransform
runtrace=runtrace,
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/diazo-1.0.3-py2.7.egg/diazo/compiler.py", line 107, in co
mpile_theme
read_network=read_network,
File "/home/plone/ccrp.transmorgrifier.buildout/eggs/diazo-1.0.3-py2.7.egg/diazo/rules.py", line 166, in proce
ss_rules
rules_doc = etree.parse(rules, parser=rules_parser)
File "lxml.etree.pyx", line 2706, in lxml.etree.parse (src/lxml/lxml.etree.c:49958)
File "parser.pxi", line 1500, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71797)
File "parser.pxi", line 1529, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:72080)
File "parser.pxi", line 1429, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:71175)
File "parser.pxi", line 975, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:68173)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:64257)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:65178)
File "parser.pxi", line 563, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64493)
IOError: Error reading file '/++theme++ccrp-5.9/rules.xml': failed to load external entity "/++theme++ccrp-5.9/r
ules.xml"
In moving the site I did not relocate the blobstorage files properly on the new server. After putting blobstorage and filestorage in the right place, everything just worked as expected. These errors were caused by missing blobstorage items.
Plone n00b here, continuing migration issues from 2.5 to 3.3.5.
To eliminate any potential problems I cleared out the custom folder and tried to get the pages to show up. When I go to a page that isn't the front page I get an:
AttributeError _v_transform.
Here is the traceback:
Exception traceback
Time 2012/09/13 08:18:06.733 GMT-7
User Name (User Id) Anonymous User (None)
Request URL http://localhost:8080/mission-vision/index_html/document_view
Exception Type AttributeError
Exception Value _v_transform
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 216, in _exec
Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
Module Products.PageTemplates.PageTemplate, line 98, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 949, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
URL: file:d:\websites\nipo\plone 3.3.5\buildout-cache\eggs\plone-3.3.5-py2.4.egg\Products\CMFPlone\skins\plone_content\document_view.pt
Line 11, Column 4
Expression: <PathExpr standard:u'here/getText'>
Names:
{'container': <PloneSite at /Plone>,
'context': <ATDocument at /Plone/mission-vision/index_html>,
'default': <object object at 0x0108D528>,
'here': <ATDocument at /Plone/mission-vision/index_html>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x07909300>,
'request': <HTTPRequest, URL=http://localhost:8080/mission-vision/index_html/document_view>,
'root': <Application at >,
'template': <FSPageTemplate at /Plone/document_view used for /Plone/mission-vision/index_html>,
'traverse_subpath': [],
'user': <SpecialUser 'Anonymous User'>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 163, in _eval
Module Products.PageTemplates.Expressions, line 125, in render
Module Products.Archetypes.ClassGen, line 56, in generatedAccessor
Module wicked.fieldevent, line 29, in render
Module zope.event, line 23, in notify
Module zope.component.event, line 26, in dispatch
Module zope.component._api, line 130, in subscribers
Module zope.component.registry, line 290, in subscribers
Module zope.interface.adapter, line 535, in subscribers
Module wicked.fieldevent, line 16, in notifyFieldEvent
Module zope.component._api, line 101, in getMultiAdapter
Module zope.component._api, line 114, in queryMultiAdapter
Module zope.component.registry, line 206, in queryMultiAdapter
Module zope.interface.adapter, line 482, in queryMultiAdapter
Module wicked.fieldevent.meta, line 78, in field_value
Module Products.Archetypes.Field, line 1394, in get
Module Products.Archetypes.BaseUnit, line 100, in transform
Module Products.PortalTransforms.TransformEngine, line 181, in convertTo
Module Products.PortalTransforms.chain, line 51, in convert
Module Products.PortalTransforms.Transform, line 192, in convert
AttributeError: _v_transform
Thanks in advance!
Try this: go to portal_setup, click import tab, select 'Portal Transforms' profile, checkbox 'PloneTransforms setup', hit 'Import selected steps', take care that 'Include dependencies' is checked, too.
References: http://plone.293351.n2.nabble.com/Re-content-type-icons-missing-in-migrated-site-td2563285.html
I'm trying to install a Plone skin called anthill.exampletheme 0.2 on Plone version 4.2 but it keeps returning the error below. The extension, anthill.skinner 0.8 installed and runs fine by itself but not the example theme. Please help!
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 237, in _exec
Module Products.CMFCore.FSPageTemplate, line 177, in pt_render
Module Products.PageTemplates.PageTemplate, line 79, 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 583, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
URL: file:c:\plone42\eggs\anthill.exampletheme-0.2-py2.6.egg\anthill\exampletheme\skins\anthill_exampletheme_custom_templates\main_template.pt
Line 9, Column 0
Expression: <PathExpr standard:u'language'>
Names:
{'container': <PloneSite at /test>,
'context': <PloneSite at /test>,
'default': <object object at 0x00991838>,
'here': <PloneSite at /test>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x08794A20>,
'request': <HTTPRequest, URL=http://localhost:8080/test/portal_skins/index_html>,
'root': <Application at >,
'template': <FSPageTemplate at /test/index_html>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 147, in _eval
Module zope.tales.expressions, line 118, in _eval
KeyError: 'language'
According to:
https://dev.plone.org/ticket/10676
anthill.exampletheme's main_template is not Plone 4 compatible. Replace its main_template with a Plone 4 main_template (e.g. from sunburst) and you may get further.