olivetreetech
Programmer
I wrote a perl module and got it working in a test environment a few months ago. Now I'm trying to get it working in production and I'm getting the following error:
error: Can't locate object method "new" via package "RT::SelectAffiliate" (perhaps you forgot to load "RT::SelectAffiliate"?) at /usr/local/rt2/WebRT/html/Elements/SelectAffiliate line 29, <GEN22> line 29.
context: ...
25: %}
26: </SELECT>
27:
28: <%INIT>
29: my $sa=new RT::SelectAffiliate ($session{'CurrentUser'});
30: $sa->UnLimit;
31: </%INIT>
32:
33: <%ARGS>
...
code stack:
/usr/local/rt2/WebRT/html/Elements/SelectAffiliate:29
/usr/local/rt2/WebRT/html/Search/PickRestriction:18
/usr/local/rt2/WebRT/html/Search/Listing.html:106
/usr/local/rt2/WebRT/html/autohandler:60
Do I somehow have to load the module in my production environment before I can use it?
I faintly remember doing something like this, but I've googled a ton and can't find how I did it.
Thanks.
error: Can't locate object method "new" via package "RT::SelectAffiliate" (perhaps you forgot to load "RT::SelectAffiliate"?) at /usr/local/rt2/WebRT/html/Elements/SelectAffiliate line 29, <GEN22> line 29.
context: ...
25: %}
26: </SELECT>
27:
28: <%INIT>
29: my $sa=new RT::SelectAffiliate ($session{'CurrentUser'});
30: $sa->UnLimit;
31: </%INIT>
32:
33: <%ARGS>
...
code stack:
/usr/local/rt2/WebRT/html/Elements/SelectAffiliate:29
/usr/local/rt2/WebRT/html/Search/PickRestriction:18
/usr/local/rt2/WebRT/html/Search/Listing.html:106
/usr/local/rt2/WebRT/html/autohandler:60
Do I somehow have to load the module in my production environment before I can use it?
I faintly remember doing something like this, but I've googled a ton and can't find how I did it.
Thanks.