[Zope-dev] Unable to retrieve member data
Priya Ramkumar
pra@baba9.com
Tue, 9 Oct 2001 11:09:36 +0530
Hi all,
I am using Zope2.3.3 & CMF1.1 with ZEO1.0b3. The CMF site was working fine
all through. But suddenly, there is a problem in authenticating users. That
is, whenever a method such as
portal_membership.getAuthenticatedMember().getMemberId()" or
"portal_membership.getAuthenticatedMember().getUserName()" is invoked from a
DTML method, I get the following error message.
Error Type: MemberDataError
Error Value: Can't find user data.
Also, "portal_membership.isAnonymousUser()" returns 0. I also checked that
portal_membership.getAuthenticatedMember()" returns the member. But I am
surprised that I am unable to get the attributes of the member object like
name or id. Has anyone faced this sort of problem? Or does anyone know under
what circumstances such functions as getMemberId(), getUserName() returns an
error?
Thanks for any help & suggestions.
This is the traceback I get.
Traceback (innermost last):
File
/export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/Publish.py,
line 223, in publish_module
File
/export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/Publish.py,
line 187, in publish
File
/export/usr/local/Zope3/Zope_software_home/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: Traversable)
File
/export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/Publish.py,
line 171, in publish
File
/export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: copy_of_news_box)
File
/export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: copy_of_news_box)
File
/export/usr/local/Zope3/Zope_software_home/lib/python/OFS/DTMLMethod.py,
line 189, in __call__
(Object: copy_of_news_box)
File
/export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_St
ring.py, line 540, in __call__
(Object: copy_of_news_box)
File
/export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_Le
t.py, line 149, in render
(Object: member="portal_membership.getAuthenticatedMember()")
File
/export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_Le
t.py, line 148, in render
(Object: name="member.getUserName()")
File
/export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_Ut
il.py, line 339, in eval
(Object: member.getUserName())
(Info: member)
File <string>, line 0, in ?
File
/export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_Ut
il.py, line 144, in careful_getattr
File
/export/usr/local/Zope3/Zope_software_home/lib/python/OFS/DTMLMethod.py,
line 261, in validate
(Object: copy_of_news_box)
File
/export/usr/local/Zope3/Instance_home/Products/CMFCore/MemberDataTool.py,
line 337, in __str__
File
/export/usr/local/Zope3/Instance_home/Products/CMFCore/MemberDataTool.py,
line 287, in getMemberId
File
/export/usr/local/Zope3/Instance_home/Products/CMFCore/MemberDataTool.py,
line 278, in getUser
MemberDataError: (see above)
Regards,
Priya