Error on uninstalling EEA Possible Relations

88 views
Skip to first unread message

richardc

unread,
Dec 12, 2011, 2:31:40 AM12/12/11
to EEA Relations
Hi,

After editing a page and deactiviating EEA Possible Relations, when I
return to edit the same page or another (previoulsy unedited page) I
get the following error. I can only edit again after activating the
product.


Richard

Error message:

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 Products.CMFFormController.FSControllerPageTemplate, line 91,
in __call__
Module Products.CMFFormController.BaseControllerPageTemplate, line
31, in _call
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 240, in _exec
Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
Module Products.PageTemplates.PageTemplate, line 79, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
- Warning: Macro expansion failed
- Warning: <type 'exceptions.KeyError'>: 'macro'
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 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 954, in do_defineSlot
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 858, in do_defineMacro
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 954, in do_defineSlot
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 946, in do_defineSlot
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 858, in do_defineMacro
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 888, in do_useMacro
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 954, in do_defineSlot
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 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 821, in do_loop_tal
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 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 522, in do_optTag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 821, in do_loop_tal
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 867, in do_useMacro
Module zope.tales.tales, line 696, in evaluate
- URL: file:/home/rcooper/plone412/buildout-cache/eggs/
Products.Archetypes-1.7.9-py2.6.egg/Products/Archetypes/skins/
archetypes/edit_macros.pt
- Line 103, Column 20
- Expression: <PythonExpr context.widget(field.getName(),
mode='edit')>
- Names:
{'container': <ATDocument at /site5/epditemplate/test-folder/
test-page>,
'context': <ATDocument at /site5/epditemplate/test-folder/test-
page>,
'default': <object object at 0xb77857d0>,
'here': <ATDocument at /site5/epditemplate/test-folder/test-
page>,
'loop': {u'field':
<Products.PageTemplates.Expressions.PathIterator object at
0x14129eec>,
u'fieldset':
<Products.PageTemplates.Expressions.PathIterator object at
0x13df7d2c>},
'nothing': None,
'options': {'args': (),
'state':
<Products.CMFFormController.ControllerState.ControllerState object at
0x13c7bccc>},
'repeat': <Products.PageTemplates.Expressions.SafeMapping
object at 0x12b27c34>,
'request': <HTTPRequest, URL=http://localhost:8080/site5/
epditemplate/test-folder/test-page/atct_edit>,
'root': <Application at >,
'template': <FSControllerPageTemplate at /site5/epditemplate/
test-folder/test-page/atct_edit>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
- __traceback_info__: context.widget(field.getName(), mode='edit')
Module PythonExpr, line 1, in <expression>
Module Products.Archetypes.BaseObject, line 284, in widget
Module Products.Archetypes.Renderer, line 24, in render
Module Products.Archetypes.generator.widget, line 145, in __call__
AttributeError: Macro eeareferencebrowser does not exist for
<ATDocument at test-page>

richardc

unread,
Dec 12, 2011, 2:30:12 AM12/12/11
to EEA Relations

richardc

unread,
Dec 12, 2011, 2:31:59 AM12/12/11
to EEA Relations

richardc

unread,
Dec 12, 2011, 2:54:43 AM12/12/11
to EEA Relations
After uninstalling using buildout, I get the following error:

Site Error

An error was encountered while publishing this resource.

Error Type: TypeError
Error Value: Cache values must be persistent objects.

Troubleshooting Suggestions

* The URL may be incorrect.
* The parameters passed to this resource may be incorrect.
* A resource that this resource relies on may be encountering an
error.

For more detailed information about the error, please refer to the
error log.

If the error persists please contact the site maintainer. Thank you
for your patience.

Alin

unread,
Dec 12, 2011, 9:38:50 AM12/12/11
to eea-re...@googlegroups.com
Hi Richard,

Indeed after you uninstall it using Add-ons from Plone Control Panel, you'll have to also remove it from buildout, as it overrides schema for the default Plone Content-Types.

For the second error, can you please paste here a more detailed traceback.

Thank you,
Alin

richardc

unread,
Dec 13, 2011, 12:53:06 AM12/13/11
to EEA Relations
Hi Alin,

After deactivating and removing from buildout, the Plone instance
cannot be accessed. Here are the log details for the affected
instance:

2011-12-13 12:44:44 INFO Zope Ready to handle requests
2011-12-13 12:44:50 INFO wildcard.fixpersistentutilities
eea.relations.content.tool
2011-12-13 12:44:50 ERROR ZODB.Connection Couldn't load state for 0x07
Traceback (most recent call last):
File "/home/user/plone412/buildout-cache/eggs/ZODB3-3.10.3-py2.6-
linux-i686.egg/ZODB/Connection.py", line 860, in setstate
self._setstate(obj)
File "/home/user/plone412/buildout-cache/eggs/ZODB3-3.10.3-py2.6-
linux-i686.egg/ZODB/Connection.py", line 914, in _setstate
self._reader.setGhostState(obj, p)
File "/home/user/plone412/buildout-cache/eggs/ZODB3-3.10.3-py2.6-
linux-i686.egg/ZODB/serialize.py", line 612, in setGhostState
state = self.getState(pickle)
File "/home/user/plone412/buildout-cache/eggs/ZODB3-3.10.3-py2.6-
linux-i686.egg/ZODB/serialize.py", line 605, in getState
return unpickler.load()
File "/home/user/plone412/buildout-cache/eggs/ZODB3-3.10.3-py2.6-
linux-i686.egg/ZODB/serialize.py", line 484, in _persistent_load
return self.load_persistent(*reference)
File "/home/user/plone412/buildout-cache/eggs/ZODB3-3.10.3-py2.6-
linux-i686.egg/ZODB/serialize.py", line 521, in load_persistent
self._cache.new_ghost(oid, obj)
TypeError: Cache values must be persistent objects.
2011-12-13 12:44:50 ERROR Zope.SiteErrorLog
1323755090.790.558875931301 http://localhost:8080/site5/epditemplate
Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.BaseRequest, line 501, in traverse
Module ZPublisher.BaseRequest, line 346, in traverseName
Module ZPublisher.BaseRequest, line 142, in publishTraverse
Module ZODB.Connection, line 860, in setstate
Module ZODB.Connection, line 914, in _setstate
Module ZODB.serialize, line 612, in setGhostState
Module ZODB.serialize, line 605, in getState
Module ZODB.serialize, line 484, in _persistent_load
Module ZODB.serialize, line 521, in load_persistent
TypeError: Cache values must be persistent objects.

richardc

unread,
Dec 13, 2011, 12:56:40 AM12/13/11
to EEA Relations
It might be worth trying and a fresh instance, as I have a good number
of products installed.

* Plone 4.1.3 (4112)

* CMF 2.2.4

* Zope 2.13.10

* Python 2.6.7 (r267:88850, Nov 23 2011, 10:46:23) [GCC 4.4.3]


Updated buildout as follows:

eggs =
...
eea.relations


zcml =
...
eea.relations
eea.relations.default

parts =
graphviz

[graphviz]
recipe = zc.recipe.cmmi
url = http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.26.3.tar.gz

jean-pierre Bouquillon

unread,
Feb 1, 2014, 6:23:09 AM2/1/14
to eea-re...@googlegroups.com
my buildout.cfg work fine Plone-4.3.2:
eggs =
    eea.daviz
    collective.quickupload
    eea.relations
eggs +=
    collective.js.queryui
zcml +=
    Products.DataGridField
    eea.relations
    eea.relations.default

etc ...
(ZMI enable Products.DataGridField )
Reply all
Reply to author
Forward
0 new messages