Error logs

I’m trying to add Jesse’s sample code on generating a password for new
users … I originally had this as a separate scrip but have now found
and discovered the wiki article on this
(http://wiki.bestpractical.com/index.cgi?AutogeneratedPassword) and
have re-done along those lines.

I now have

===== CUT ======

Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding:
"{$Ticket->Subject()}",
a summary of which appears below.

There is no need to reply to this message right now. Your ticket has
been
assigned an ID of [{$rtname} #{$Ticket->id()}].

Please include the string:

      [{$rtname} #{$Ticket->id}]

in the subject line of all future correspondence about this issue. To
do so,
you may reply to this message.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&

 (!$Transaction->CreatorObj->Privileged) &&
 ($Transaction->CreatorObj->__Value('Password') eq '*NO-PASSWORD*')
 ) {



     my $user = RT::User->new($RT::SystemUser);
     $user->Load($Transaction->CreatorObj->Id);
     my ($stat, $pass) = $user->SetRandomPassword();



     if (!$stat) {
             $OUT .=

“An internal error has occurred. RT was not able to set a password for
you.
Please contact your local RT administrator for assistance.”;

     }

$OUT .= "
You can check the current status and history of your requests at:

     ".$RT::WebURL."

When prompted, enter the following username and password:

     Username: ".$user->Name."
     Password: ".$pass."

";
}
}

                     Thank you,
                     {$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}
===== CUT ======

I get the following error however

[Sat Aug 14 22:01:49 2004] [crit]: Trying to check RT::Queue rights for
an unspecified RT::Queue (/opt/rt3/lib/RT/Principal_Overlay.pm:355)

Any ideas?

Kindest Regards

Jon Morby

fax to email service - register at http://www.fido.net/fax2email/
and for all your telecom needs - http://www.fidotelecom.com/
FidoNet Registration Services Ltd tel: 08714 333 666
fido.net - the internet made simple! fax: 08714 334
000