Error : A critical error has been encountered while executing function main::run

  • A critical error has been encountered while executing function main::run
    in /var/www/imscp/engine/traffic/imscp-vrl-traff.


    Error was:


    ==========================================================================
    main::run: Can't locate object method "CLEAR" via package "iMSCP::Config"
    at
    /var/www/imscp/engine/traffic/../PerlLib/Servers/httpd/apache_php_fpm.pm
    line 1180.


    ==========================================================================



    I just made a reconfiguration of the configuration imscp-setup -d

    Notelseit.com

  • Hello;


    I confirm that this method is missing and this will be fixed in 1.1.1 release. However, this was caused by another error because the CLEAR method on the tied hash (%trafficDb) is called only if something goes wrong while collecting traffic data.



    Code
    1. if($@) {
    2. $rawDb->rollback();
    3. %trafficDb = ();
    4. $db->endTransaction();
    5. die("Unable to collect traffic data: $@");
    6. }

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

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

  • Re;


    Don't forget to switch to the stable branch while cloning. For instance:


    Code
    1. # cd /usr/local/src
    2. # git clone -b stable https://github.com/i-MSCP/imscp.git


    Remove your previous directory if any.

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