Re: getID() error in roles displayrole.php

Andreas Nyback <[email protected]>
Newsgroups gmane.comp.cms.xaraya.user
Organization Xaraya
Message-ID <[email protected]>
After much digging i found a solution to this problem. I write it here 
if someone else runs into it.

If you go into roles->modify config->user variables
and deactivate primary parent
then activate it again.
All old users in xaraya that where created before the primary parent 
variable came are now working again as they should.

I dont know why it fixed it but it could have something to do with the 
change of primaryparent for users that came in early autumn according to 
the mt notices.
/Andreas


Andreas Nyback skrev:
> I would need some advice how to trace this problem.
> 
> If i create a new user then that user works. If i click on the user the 
> user page comes up. But on all my old users and groups i get this error 
> when accessing.
> 
> Fatal error: Call to a member function getID() on a non-object in 
> modules/roles/xaradmin/displayrole.php on line 47
> 
> I tried to look in the database to see what is the difference between a 
> new and an old user but i cannot find it.
> 
> The error comes in displayrole.php and modifyrole.php. 
> showprivileges.php works.
> 
> log.txt shows nothing that helps.
> 
> I use a fresh xaraya from monotone.
> 
> thanks
> /Andreas
> 
> Andreas Nyback skrev:
>> After my upgrade to latest xaraya i get an error message when i click 
>> on a user.
>>
>> If i try to access a user:
>> http://www.nyback.com/index.php?module=roles&type=admin&func=displayrole&uid=7 
>>
>>
>> I get:
>>
>> Fatal error: Call to a member function getID() on a non-object in 
>> /var/www/www.nyback.com/htdocs/modules/roles/xaradmin/displayrole.php 
>> on line 47
>>
>> I have ran upgrade.php.
>> I have authsystem and user registration selected in roles config.
>> I also have security module installed.
>>
>> Any advice?
>>
>> By the way, what is the Authentication module and how does it fit in 
>> with the others? Is it old or for future use?
>> thanks
>> /Andreas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.