Error when trying to uninstall

  • Hi,


    I have the following error when trying to uninstall i-IMSCP:

    Quote

    iMSCP::Stepper::_callback: Global symbol "$rs" requires explicit package name (did you forget to declare "my $rs"?) at /var/www/imscp/engine/setup/../PerlLib/Servers/httpd/apache_php_fpm/uninstaller.pm line 150, <$fh> line 12.

    Global symbol "$rs" requires explicit package name (did you forget to declare "my $rs"?) at /var/www/imscp/engine/setup/../PerlLib/Servers/httpd/apache_php_fpm/uninstaller.pm line 151, <$fh> line 12.

    Global symbol "$rs" requires explicit package name (did you forget to declare "my $rs"?) at /var/www/imscp/engine/setup/../PerlLib/Servers/httpd/apache_php_fpm/uninstaller.pm line 151, <$fh> line 12.

    Compilation failed in require at /var/www/imscp/engine/setup/../PerlVendor/Class/Autouse.pm line 637, <$fh> line 12.

    at imscp-uninstall line 108.

    Any ideas? Thanks in advance.


    OS: Ubuntu 16.04.5 LTS

    i-MSCP version: 1.5.3


    EDIT: for now, I just commented that block of code in uninstaller.pm:


    Quote

    for ( '000-default', 'default' ) {

    next unless -f "$self->{'config'}->{'HTTPD_SITES_AVAILABLE_DIR'}/$_";

    $rs = $self->{'httpd'}->enableSites( $_ );

    return $rs if $rs;

    }


    and the uninstall process finished. If i am not wrong is because I do not have the default site conf files of apache2 (I always remove those files).

    Edited once, last by GuS ().