SID-00284: Error in handling user object
| Status: |
Unanswered |
TWiki version: |
4.3.0 |
Perl version: |
ActivePerl v5.8.4 |
| Category: |
CategoryAuthentication |
Server OS: |
Windows XP Prof SP2 |
Last update: |
16 years ago |
Hello all together!
I have written a second type of search; a search that looks inside of attached htm files for a requested string. Now, I user the typical search-template for printing the results on the screen. But I have problems to find out, which user modified the files the last time.
To look at all files, I user the perl-function
File::Find
in the "pub"-directory. For htm files with the requested content, I save topic and filename. Then, I want to get the username from the files which stands in the meta-information, so I call
TWiki::Store::getRevisionInfo
with the parameters
($session->{store}, $web, $topic, undef, $_)
. From this function, I should expect this values:
( $date, $user, $rev, $comment )
where $user is a user
object (
Documentation
). Now, I have an object as it would be if I created it with
$user = TWiki::User::new(...)
, right? (I expect my error to be here.) So far so good.
When I want to call
$user->WikiName()
, I get the error message
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Can't locate object method "WikiName" via package "BaseUserMapping_666" (perhaps you forgot to load "BaseUserMapping_666"?)
. I searched in the TWiki web, the Support web and in google for "BaseUserMapping", but could not find any tips for my situation.
PS: All other functions work - I get the correct date and the correct revision, but if I print $user only "BaseUserMapping_666". I read
TWiki04x03.TWiki::Users::BaseUserMapping
, but could not find any helpful tips also.
--
MarkStephan - 2009-04-27
Discussion and Answer
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2009-06-02
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.