bug in 10_named_slave_provisioning.pl

  • In 10_named_slave_provisioning.pl file, there are an error in line 78


    Code
    1. [DEBUG] iMSCP::EventManager::_init: Loading /etc/imscp/listeners.d/10_named_slave_provisioning.pl listener file
    2. [DEBUG] iMSCP::LockFile::release: Releasing exclusive lock on /var/lock/imscp.lock
    3. [FATAL] iMSCP::EventManager::_init: Global symbol "$rs" requires explicit package name (did you forget to declare "my $rs"?) at /etc/imscp/listeners.d/10_named_slave_provisioning.pl line 78.
    4. Global symbol "$rs" requires explicit package name (did you forget to declare "my $rs"?) at /etc/imscp/listeners.d/10_named_slave_provisioning.pl line 79.
    5. Global symbol "$rs" requires explicit package name (did you forget to declare "my $rs"?) at /etc/imscp/listeners.d/10_named_slave_provisioning.pl line 83.
    6. Compilation failed in require at /var/www/imscp/engine/setup/../PerlLib/iMSCP/EventManager.pm line 266.

    If I put "my" string before the "$rs" it's work well.



    i-MSCP: 1.5.1
    OS: Debian 9.1

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • @Dylan


    A fix has been added in our development branch, along small review. See https://github.com/i-MSCP/imsc…083962bb304582b939f673c87
    This fix will be part of next release.


    Thank you for your report.
    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206