Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Undefined subroutine Error
anksaxa
Hi there,
When I invoke submit workflow (default), it gives this error in Teamsite 6.5 on Windows 2003 server:
[Wed Dec 29 16:53:10 2004] [error] [client 80.148.0.171] Undefined subroutine &TeamSite::I18N_utils::iw_locale_2_lang called at C:\\iw-home\\httpd\\iw-bin\\iwconflictcheck.ipl line 29.\n
I checked this file and here is line:
my $result_lang = TeamSite::I18N_utils::iw_locale_2_lang($iwserver_locale);
Cheers,
Ankur
Find more posts tagged with
Comments
Adam Stoller
If you go to a DOS Prompt / Cmd window on your TS Server - what do you see in response to the following commands:
C:\>
assoc .ipl
C:\>
ftype iwperl
C:\>
ftype perl
C:\>
iwperl -le "print $_ foreach(
@INC)
;"
If that last command doesn't work as written, try:
C:\>
\
path-to-iwhome
\iw-perl\bin\iwperl -le "print $_ foreach(
@INC)
;"
The module apparently exists, the subroutine appears to exist, so the only thing that would make sense to me is that for one reason or another you system isn't properly configured to run the correct version of Perl and is running one that does not include the TeamSite modules (though I would think a **** of a lot would break besides this in that case).
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
anksaxa
I executed those commands and here are the results:
C:\>assoc.ipl
.ipl=iwperl
C:\>ftype iwperl
iwperl=C:\iw-home\iw-perl\bin\iwperl.exe "%1" %*
C:\>ftype perl
File type 'perl' not found or no open command associated with it.
C:\>\iw-home\iw-perl\bin\iwperl -le "print $_ foreach(
@INC)
;"
C:/iw-home/iw-perl/lib
C:/iw-home/iw-perl/site/lib
C:\iw-home\iw-perl\vendor\lib
.
I think library is in place as I'm able to invoke another method from the same package, TeamSite::I18N_utils::utf8_to_other_encoding method.
And there is a pm file at: c:\iw-home\iw-perl\vendor\lib\TeamSite\I18N_utils.pm.
I'm attaching that pm file and screen shots.
anksaxa
I found the reason why its happening. Its because TeamSite package is at 2 places, site\lib and vendor\lib.
Actually, we migrated from TS5.5 to TS6.5 and copied across all files from site\lib and in TS5.5 TeamSite package was in site\lib folder. Don't know why??
How can I change lib path so that it looks into vendor\lib first and then site\lib??
Adam Stoller
You should NOT have any Interwoven supplied modules in site/lib -- the only thing that should be in site/lib are your organization's own custom modules.
I suggest you remove any TeamSite/*.pm modules from site/lib and try again.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
anksaxa
It works fine now.
Thanks!!