-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute '_getReferenceAnnotations during migration #41
Comments
I can confirm this. |
@jensens I can't reproduce this anymore. Can we close this issue? |
Its been a while. I dont have a setup around anymore to test it. Sorry. |
Since we can't reproduce this anymore I'll close it. |
Same error here:
How did you solved that for you? |
Branch: refs/heads/master Date: 2017-06-21T10:10:38+02:00 Author: Philip Bauer (pbauer) <[email protected]> Commit: plone/Products.Archetypes@83a04f0 Prevent AttributeError on deleting a Reference from a object that is gone. Fixes plone/plone.app.contenttypes#41 Files changed: M CHANGES.rst M Products/Archetypes/ReferenceEngine.py Repository: Products.Archetypes Branch: refs/heads/master Date: 2017-07-04T17:49:39+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/Products.Archetypes@51bca84 Merge pull request #91 from plone/fix_delete_reference Prevent AttributeError on deleting a Reference Files changed: M CHANGES.rst M Products/Archetypes/ReferenceEngine.py
I'm getting this error as well, 2017-07-20 13:31:00 INFO plone.app.contenttypes.migration.browser Start migrating 3 objects from ATTopic to Collection
----------------------------------------------------------------------------------------------------------------------
2017-07-20 13:31:00 ERROR OFS.subscribers _delObject() threw
Traceback (most recent call last):
File "/home/jesse/Development/plone/plone507.site/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/OFS/subscribers.py", line 155, in callManageBeforeDelete
ob.manage_beforeDelete(item, container)
File "/home/jesse/Development/plone/plone507.site/buildout-cache/eggs/Products.Archetypes-1.10.16-py2.7.egg/Products/Archetypes/BaseFolder.py", line 105, in manage_beforeDelete
BaseObject.manage_beforeDelete(self, item, container)
File "/home/jesse/Development/plone/plone507.site/buildout-cache/eggs/Products.Archetypes-1.10.16-py2.7.egg/Products/Archetypes/BaseObject.py", line 174, in manage_beforeDelete
Referenceable.manage_beforeDelete(self, item, container)
File "/home/jesse/Development/plone/plone507.site/buildout-cache/eggs/Products.Archetypes-1.10.16-py2.7.egg/Products/Archetypes/Referenceable.py", line 297, in manage_beforeDelete
self.deleteReferences()
File "/home/jesse/Development/plone/plone507.site/buildout-cache/eggs/Products.Archetypes-1.10.16-py2.7.egg/Products/Archetypes/Referenceable.py", line 63, in deleteReferences
return tool.deleteReferences(self, relationship)
File "/home/jesse/Development/plone/plone507.site/buildout-cache/eggs/Products.Archetypes-1.10.16-py2.7.egg/Products/Archetypes/ReferenceEngine.py", line 354, in deleteReferences
self._deleteReference(b)
File "/home/jesse/Development/plone/plone507.site/buildout-cache/eggs/Products.Archetypes-1.10.16-py2.7.egg/Products/Archetypes/ReferenceEngine.py", line 571, in _deleteReference
annotation = sobj._getReferenceAnnotations()
AttributeError: 'NoneType' object has no attribute '_getReferenceAnnotations' (Migration from Plone 4.3.14 to 5.0.7) |
from object that is gone. Backport from master #91. Fixes plone/plone.app.contenttypes#41.
Branch: refs/heads/1.9.x Date: 2018-08-01T13:37:59+02:00 Author: Fred van Dijk (fredvd) <[email protected]> Commit: plone/Products.Archetypes@7bc06f0 Prevent AttributeError on deleting a Reference from object that is gone. Backport from master #91. Fixes plone/plone.app.contenttypes#41. Files changed: M CHANGES.rst M Products/Archetypes/ReferenceEngine.py Repository: Products.Archetypes Branch: refs/heads/1.9.x Date: 2018-08-05T16:45:17+02:00 Author: Jens W. Klein (jensens) <[email protected]> Commit: plone/Products.Archetypes@7068c71 Merge pull request #110 from plone/fix_delete_reference Prevent AttributeError on deleting a Reference Files changed: M CHANGES.rst M Products/Archetypes/ReferenceEngine.py
The text was updated successfully, but these errors were encountered: