Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Just another Perl shrine
 
PerlMonks  

Re: Upgrade from 5.8 to 5.14 broke me

by syphilis (Canon)
on Aug 08, 2013 at 23:36 UTC ( #1048662=note: print w/ replies, xml ) Need Help??


in reply to Upgrade from 5.8 to 5.14 broke me

Use of uninitialized value in split at /var/www/vmailadmin/includes/bin/backend.pl line 42

Assuming that line 42 of /var/www/vmailadmin/includes/bin/backend.pl is

my @argarray = split(/:/,$ARGV[0]);
then it's $ARGV[0] that's uninitialized.

Did you forget to provide a command line argument ?

Cheers,
Rob


Comment on Re: Upgrade from 5.8 to 5.14 broke me
Download Code
Re^2: Upgrade from 5.8 to 5.14 broke me
by rjreb (Initiate) on Aug 12, 2013 at 18:09 UTC
    That would probably help. When I add an address I now get this.

    # /var/www/vmailadmin/includes/bin/backend.pl "test@example.com"
    Use of uninitialized value $func in regexp compilation at /var/www/vmailadmin/includes/bin/backend.pl line 84.
    Use of uninitialized value $func in regexp compilation at /var/www/vmailadmin/includes/bin/backend.pl line 114.
    Use of uninitialized value $func in regexp compilation at /var/www/vmailadmin/includes/bin/backend.pl line 160.
    Use of uninitialized value $func in regexp compilation at /var/www/vmailadmin/includes/bin/backend.pl line 200.
    Use of uninitialized value $func in regexp compilation at /var/www/vmailadmin/includes/bin/backend.pl line 266.
    Use of uninitialized value $func in regexp compilation at /var/www/vmailadmin/includes/bin/backend.pl line 299.
    Use of uninitialized value $func in regexp compilation at /var/www/vmailadmin/includes/bin/backend.pl line 337.

    Line 84 contains

    if ( grep /^$func$/, @domain_manager ) { use VMA::DomainManager qw\createDomainHome removeDomainHome\; # # Set varibles from input # my $facility = "domainmgr"; my $cachedir = $argarray[3]; my $uid = $argarray[4]; my $gid = $argarray[5]; my $home = $argarray[6]; my $host = $argarray[7]; my $system = $argarray[8]; if ( $func eq 1001 ) { createDomainHome($home,$host,$uid,$gid,$system,$is_log +ging,$logdir,$facility); } elsif ( $func eq 1002 ) { removeDomainHome($home,$host,$cachedir,$is_logging,$lo +gdir,$facility); } }
      I found out that I needed to add a sudo rule. Not certain why it wasn't required before.

      # vMail.Admin rule for apache
      Host_Alias HOST = hostname.of.server
      www-data HOST = NOPASSWD: /var/www/vmailadmin/includes/bin/backend.pl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-04-19 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls