2.1.x -> 2.5.2: Error value: 'NoneType' object has no attribute 'addMember'
This Error Reference applies to:
Plone 2.5.x, Plone 2.1.x
This Error Reference is intended for:
Any audience.
I can't take credit for the solution on this one, it was found in the tracker: http://plone.org/products/plonepas/issues/29
Solution:
At line 387 of PlonePAS/Extensions/Install.py (version that ships with Plone 2.5.2) add the conditional emphasized below.
# restore group memberships
gid = g[0]
group = gtool.getGroupById(gid)
if group is not None:
for mid in groupmemberships[gid]:
group.addMember(mid)
print >> out, "%s " % mid
I have encountered the problem more than once, though, so I think the error belongs in the reference.