Personal tools
You are here: Home Documentation Error References 2.1.x -> 2.5.2: Error value: 'NoneType' object has no attribute 'addMember'
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

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.

When Migrating from 2.1.3 or 2.1.4 to 2.5.2, some Plone instances may raise the error: Error value: 'NoneType' object has no attribute 'addMember'

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.

by Bryan White last modified March 31, 2007 - 23:03
Contributors: Tom Hallam
All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by