PAC throwing errors

wkhastings
2013-01-22
2013-04-23
  • wkhastings
    wkhastings
    2013-01-22

    Running into a problem starting PAC after a perl update.

    Ubuntu 11.10 running perl 5 version 12. PAC errors with the following:

    PAC started (pac) with PID 5852
    INFO: Used config file '/home/username/.config/pac/pac.nfreeze'
    Use of uninitialized value $lastfile in substitution (s///) at /opt/pac/lib/PACUtils.pm line 1770.
    Use of uninitialized value $lastfile in scalar chomp at /opt/pac/lib/PACUtils.pm line 1770.
    Use of uninitialized value $lastfile in concatenation (.) or string at /opt/pac/lib/PACUtils.pm line 1771.
    Can't use an undefined value as an ARRAY reference at /opt/pac/lib/PACUtils.pm line 1805.

    Thanks!

     
  • wkhastings
    wkhastings
    2013-01-24

    I have used KeePassX but uninstalled as I wasn't using it.

    The pre-release has been installed and still won't start. Here's the following error:

    PAC started (pac) with PID 17226
    INFO: Used config file '/home/username/.config/pac/pac.nfreeze'
    Can't use an undefined value as an ARRAY reference at /opt/pac/lib/PACUtils.pm line 1807.

    Thanks!

     
  • Hmmm….
    Ok, please, make a backup of your /opt/pac/lib/PACUtils.pm.
    Now edit it, ang change line #1807 with this one:

    my @screenshots = @{ $$cfg{'environments'}{$uuid}{'screenshots'} // () };

    Save and start PAC.

    Please, let me know if that worked.
    - David.

     
  • wkhastings
    wkhastings
    2013-01-24

    David,

    Sorry, still giving the same error:

    Can't use an undefined value as an ARRAY reference at /opt/pac/lib/PACUtils.pm line 1807.

    Many thanks!

     
  • Hmmmm

    Please, exec and send me the output of:

    cat /opt/pac/lib/PACUtils.pm | head -1805 | tail -5

    Thanks!
    - David.

     
  • wkhastings
    wkhastings
    2013-01-25

    @foghorn:/opt/pac/lib$ cat /opt/pac/lib/PACUtils.pm | head -1805 | tail -5
    next;
    } elsif ( $$cfg{'environments'}{$uuid}{'_is_group'} ) {
    my $name = $$cfg{'environments'}{$uuid}{'name'};
    my $description = $$cfg{'environments'}{$uuid}{'description'};
    my $children = dclone( $$cfg{'environments'}{$uuid}{'children'} );