We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

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 smile 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

TWiki version: 4.01
TWiki plugins: default for 4.01 install
Server OS: Debian stable, kernel 2.4.26
Web server: Apache 1.3.33
Perl version: 5.8.4
Client OS: WinXP? pro
Web Browser: Firefox 1.5
Categories: Missing functionality, Fatal error

-- RonMiller - 10 Mar 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Topic revision: r2 - 12 Mar 2006 - 20:41:11 - CrawfordCurrie
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback