RT Blues

Hi, uhm…

Nov 5 22:08:02 netsphere RT: Converting ‘iso-8859-1’ to ‘utf-8’ for
text/plain -
Nov 5 22:08:02 netsphere RT: Guessed encoding: ascii
Nov 5 22:08:02 netsphere RT: Guessed encoding: ascii
Nov 5 22:08:03 netsphere RT: About to think about scrips for transaction8
Nov 5 22:08:03 netsphere RT: About to prepare scrips for transaction8
Nov 5 22:08:03 netsphere RT: Found 3 scrips
Nov 5 22:08:03 netsphere RT: Scrip Prepare 17 died. - Undefined subroutine
&Scalar::Util::weaken called at /usr/local/rt/lib/RT/Action/Generic.pm line
104. Stack: [/usr/local/rt/lib/RT/Action/Generic.pm:104]
[/usr/local/rt/lib/RT/Action/Generic.pm:79]
[/usr/local/rt/lib/RT/ScripAction_Overlay.pm:163]
[/usr/local/rt/lib/RT/Scrip_Overlay.pm:463]
[/usr/local/rt/lib/RT/Scrips_Overlay.pm:232]
[/usr/local/rt/lib/RT/Transaction_Overlay.pm:146]
[/usr/local/rt/lib/RT/Ticket_Overlay.pm:3707]
[/usr/local/rt/lib/RT/Ticket_Overlay.pm:710]
[/usr/local/rt/lib/RT/Interface/Email.pm:671]
[/usr/local/rt/share/html/REST/1.0/NoAuth/mail-gateway:55]
(/usr/local/rt/lib/RT/Scrip_Overlay.pm:471)
Nov 5 22:08:03 netsphere RT: Scrip Prepare 23 died. - Undefined subroutine
&Scalar::Util::weaken called at /usr/local/rt/lib/RT/Action/Generic.pm line
104. Stack: [/usr/local/rt/lib/RT/Action/Generic.pm:104]
[/usr/local/rt/lib/RT/Action/Generic.pm:79]
[/usr/local/rt/lib/RT/ScripAction_Overlay.pm:163]
[/usr/local/rt/lib/RT/Scrip_Overlay.pm:463]
[/usr/local/rt/lib/RT/Scrips_Overlay.pm:232]
[/usr/local/rt/lib/RT/Transaction_Overlay.pm:146]
[/usr/local/rt/lib/RT/Ticket_Overlay.pm:3707]
[/usr/local/rt/lib/RT/Ticket_Overlay.pm:710]
[/usr/local/rt/lib/RT/Interface/Email.pm:671]
[/usr/local/rt/share/html/REST/1.0/NoAuth/mail-gateway:55]
(/usr/local/rt/lib/RT/Scrip_Overlay.pm:471)

Help?? I’m lost…

Chris

** This email has been scanned by Cenergy Networks for viruses and **
** spam. As part of our ongoing drive to ensure reliable and **
** secure communications, Cenergy Networks guarantees this message **
** to be clean of any viruses or spam. Should you not be satisfied**
** with the content of this email, please let us know by emailing **
** us at feedback@cenergynetworks.com **

add to the beginning of the lib/RT/Action/Generic.pm somewhere after
package xxxx; line:
require Scalar::Util;

Chris Knipe wrote:

add to the beginning of the lib/RT/Action/Generic.pm somewhere after
package xxxx; line:
require Scalar::Util;

Hm. I see this already in my RT 3.2 repository.
And it’s been there for a very, very long time.

add to the beginning of the lib/RT/Action/Generic.pm somewhere after
package xxxx; line:
require Scalar::Util;

Hm. I see this already in my RT 3.2 repository.
And it’s been there for a very, very long time.

And it is in mine as well. I’m betting this is more a Perl issue than a RT
one… I’m busy reinstalling on a different machine and I’m pretty sure it
will work there. At least I’m not loosing any data from the Databases :wink:

Chris

** This email has been scanned by Cenergy Networks for viruses and **
** spam. As part of our ongoing drive to ensure reliable and **
** secure communications, Cenergy Networks guarantees this message **
** to be clean of any viruses or spam. Should you not be satisfied**
** with the content of this email, please let us know by emailing **
** us at feedback@cenergynetworks.com **

Chris, can you tell what system do you run on machine where RT is broken?
And also what version of perl is it? Had you compiled it or took from
distro?

Chris Knipe wrote:

Nov 5 22:08:02 netsphere RT: Converting ‘iso-8859-1’ to ‘utf-8’ for
text/plain -
Nov 5 22:08:02 netsphere RT: Guessed encoding: ascii
Nov 5 22:08:02 netsphere RT: Guessed encoding: ascii
Nov 5 22:08:03 netsphere RT: About to think about scrips for transaction8
Nov 5 22:08:03 netsphere RT: About to prepare scrips for transaction8
Nov 5 22:08:03 netsphere RT: Found 3 scrips
Nov 5 22:08:03 netsphere RT: Scrip Prepare 17 died. - Undefined subroutine
&Scalar::Util::weaken called at /usr/local/rt/lib/RT/Action/Generic.pm line

The weaken() function is only available if you have the XS version of
Scalar::Util. Try reinstalling this module and make sure that the XS
version gets compiled. If you’re on Windows I believe Randy Kobes’ has
this in his PPM repo.

-dave

/===========================
VegGuide.Org
Your guide to all that’s veg.
===========================
/

The weaken() function is only available if you have the XS version of
Scalar::Util. Try reinstalling this module and make sure that the XS
version gets compiled. If you’re on Windows I believe Randy Kobes’ has
this in his PPM repo.

Oh. ow. Is there an easy way to probe for the XS version? If so, I’ll add
it to the dep list.

Jesse Vincent wrote:

The weaken() function is only available if you have the XS version of
Scalar::Util. Try reinstalling this module and make sure that the XS
version gets compiled. If you’re on Windows I believe Randy Kobes’ has
this in his PPM repo.

Oh. ow. Is there an easy way to probe for the XS version? If so, I’ll add
it to the dep list.
IMHO next would be OK:
require Scalar::Util;
print "not " unless (defined &Scalar::Util::weaken);
print “ok”;