Question
Can't locate object method checkPasswd
From bash shell, as user root:
library:/var/www/html/wiki/bin# ./manage -user
TestUser -action deleteUserAccount -password qwerty
******************************
Can't locate object method "checkPasswd" via package "TWiki::User" at /var/www/html/wiki/lib/TWiki/UI/Manage.pm line 112.
TWiki::UI::Manage::_removeUser('TWiki=HASH(0x88c5f90)') called at /var/www/html/wiki/lib/TWiki/UI/Manage.pm line 61
TWiki::UI::Manage::manage('TWiki=HASH(0x88c5f90)') called at /var/www/html/wiki/lib/TWiki/UI.pm line 97
TWiki::UI::__ANON__() called at /var/www/html/wiki/lib/CPAN/lib///Error.pm line 387
eval {...} called at /var/www/html/wiki/lib/CPAN/lib///Error.pm line 379
Error::subs::try('CODE(0x8a259f4)', 'HASH(0x8a1bf20)') called at /var/www/html/wiki/lib/TWiki/UI.pm line 146
TWiki::UI::run('CODE(0x879f818)') called at ./manage line 33
******************************
Content-type: text/plain
Can't locate object method "checkPasswd" via package "TWiki::User" at /var/www/html/wiki/lib/TWiki/UI/Manage.pm line 112.
TWiki::UI::Manage::_removeUser('TWiki=HASH(0x88c5f90)') called at /var/www/html/wiki/lib/TWiki/UI/Manage.pm line 61
TWiki::UI::Manage::manage('TWiki=HASH(0x88c5f90)') called at /var/www/html/wiki/lib/TWiki/UI.pm line 97
TWiki::UI::__ANON__() called at /var/www/html/wiki/lib/CPAN/lib///Error.pm line 387
eval {...} called at /var/www/html/wiki/lib/CPAN/lib///Error.pm line 379
Error::subs::try('CODE(0x8a259f4)', 'HASH(0x8a1bf20)') called at /var/www/html/wiki/lib/TWiki/UI.pm line 146
TWiki::UI::run('CODE(0x879f818)') called
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Since the deleteUserAccount functionality seems to be there (although I cannot find anywhere a link to let the Admin call it), it should work

I believe it should show up when an Admin goes to
TWikiUsers and clicks on a user, or as a link on
TWikiUsers itself, next to each user.
I've been to
http://twiki.org/cgi-bin/view/Codev/HowToDeleteUserAccount
and while its very helpful, TWiki really should be more user-friendly to delete a spamming, abusive user.
http://twiki.org/p/pub/Codev/HowToDeleteUserAccount/twiki-remove-user
Seems to be very nice.
Environment
--
RonMiller - 10 Mar 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Yes, agreed, it should. It would be great if someone could create a "delete user" admin page, but so far no one has managed to get there.
The error is tracked in
http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1850
BTW your problem above is due to a type; checkPasswd instead of checkPassword.
I would be very cautious of using any non-twiki script to remove users. Passwords, especially, are handled by a number of different pluggable management modules. Several of these modules will also handle groups in a future release.
--
CrawfordCurrie - 12 Mar 2006