Tsafarog

Member
Oct 23, 2009
15
1
53
Hello,

i am using WHM version 11.56

i am having an issue with executing scripts inside /scripts directory.

if i try to execute the backup command from /scripts/pkgacct i get the error

/usr/local/cpanel/3rdparty/bin/perl: symbol lookup error: /root/perl5/lib/perl5/x86_64-linux-64int/auto/DBI/DBI.so: undefined symbol: Perl_xs_apiversion_bootcheck

If i execute the command from /usr/local/cpanel/scripts/ it works fine.

Any advice how to fix this?

Kind regards and my thanks in advance
 

Tsafarog

Member
Oct 23, 2009
15
1
53
i have been trying but i am getting an error when i try to log in to customer portal
Code:
error type: undef
error info: Must be a positive integer (in $args->{"user_id"}) at (eval 973) line 182
    "PositiveInt" is a subtype of "Int"
    "Int" is a subtype of "Num"
    "Num" is a subtype of "LaxNum"
    "LaxNum" is a subtype of "Str"
    "Str" is a subtype of "Value"
    "Value" is a subtype of "Defined"
    Undef did not pass type constraint "Defined" (in $args->{"user_id"})
    "Defined" is defined as: (defined($_))

undef error - Must be a positive integer (in $args->{"user_id"}) at (eval 973) line 182
    "PositiveInt" is a subtype of "Int"
    "Int" is a subtype of "Num"
    "Num" is a subtype of "LaxNum"
    "LaxNum" is a subtype of "Str"
    "Str" is a subtype of "Value"
    "Value" is a subtype of "Defined"
    Undef did not pass type constraint "Defined" (in $args->{"user_id"})
    "Defined" is defined as: (defined($_))
or this when i go to ticket submit page

An unknown error has occurred, and our admins have been notified. Please contact cs @ cpanel.net for further assistance with this request.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

To update, it looks like the PERL5LIB environment variable was enabled on this system. The following lines were removed from /root/.bashrc to disable this environment, as it's not generally recommended on cPanel systems:

Code:
export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/root/perl5";
export PERL_MB_OPT="--install_base /root/perl5";
export PERL_MM_OPT="INSTALL_BASE=/root/perl5";
export PERL5LIB="/root/perl5/lib/perl5:$PERL5LIB";
The following document explains the multiple Perl environments on cPanel systems:

Guide to Perl in cPanel & WHM - Perl Environments

Thank you.