The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Illegal division by zero at directive?

Discussion in 'General Discussion' started by doropezaTSV, Nov 17, 2015.

  1. doropezaTSV

    doropezaTSV Member

    Joined:
    Nov 17, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Venezuela
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a client at my server that is showing this error at the cpanel statics area. Looks like an error for calculate the bandwidth but it has 25000MB assigned.


    A warning occurred while processing this directive
    Code:
    Illegal division by zero at /usr/local/cpanel/Cpanel/BandwidthDB/ImportRRD/Logic.pm line 182.
    at /usr/local/cpanel/Cpanel/API/StatsBar.pm line 48.
       Cpanel::API::StatsBar::get_stats(Cpanel::Args=HASH(0xc270234), Cpanel::Result=HASH(0xc27039c)) called at /usr/local/cpanel/Cpanel/API.pm line 177
       Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 249
       eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 249
       Cpanel::API::_eval_guard(Cpanel::Result=HASH(0xc27039c), CODE(0xc26fce4)) called at /usr/local/cpanel/Cpanel/API.pm line 177
       Cpanel::API::_run_module_function(Cpanel::Args=HASH(0xc270234), Cpanel::Result=HASH(0xc27039c), "StatsBar", "get_stats") called at /usr/local/cpanel/Cpanel/API.pm line 49
       Cpanel::API::_execute("StatsBar", "get_stats", HASH(0xaa309ac)) called at /usr/local/cpanel/Cpanel/StatsBar.pm line 56
       Cpanel::StatsBar::api2_stat("infinitylang", "true", "rowcounter", "mainstats", "display", "diskusage|filesusage|bandwidthusage") called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 118
       eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 118
       Cpanel::Api2::Exec::api2_exec("StatsBar", "stat", HASH(0xc26fe74), HASH(0xa78a07c)) called at cpanel.pl line 1096
       main::real_cpexectag("<?cp StatsBar::stat(\x{a}  [tr class=\"row-%\"]\x{a}  "...) called at cpanel.pl line 4107
       main::dotag_finished_headers(0) called at cpanel.pl line 3926
       main::cpanel_parseblock("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN"...) called at cpanel.pl line 3878
       main::y(GLOB(0xc16f068)) called at cpanel.pl line 2987
       main::doinclude("/usr/local/cpanel/base/frontend/x3/branding/index.html", 0, 1) called at /usr/local/cpanel/Cpanel/cpanel.pm line 187
       Cpanel::cpanel::__ANON__() called at /usr/local/cpanel/Cpanel/cpanel.pm line 170
       Cpanel::cpanel::_trap_defaultfh(CODE(0xc16ebf4)) called at /usr/local/cpanel/Cpanel/cpanel.pm line 190
       Cpanel::cpanel::_wrap_include("/usr/local/cpanel/base/frontend/x3/branding/index.html", 0, 1) called at /usr/local/cpanel/Cpanel/API/Branding.pm line 61
       Cpanel::API::Branding::include(Cpanel::Args=HASH(0xc139878), Cpanel::Result=HASH(0xc136778)) called at /usr/local/cpanel/Cpanel/API.pm line 177
       Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 249
       eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 249
       Cpanel::API::_eval_guard(Cpanel::Result=HASH(0xc136778), CODE(0xc1407f4)) called at /usr/local/cpanel/Cpanel/API.pm line 177
       Cpanel::API::_run_module_function(Cpanel::Args=HASH(0xc139878), Cpanel::Result=HASH(0xc136778), "Branding", "include") called at /usr/local/cpanel/Cpanel/API.pm line 49
       Cpanel::API::_execute("Branding", "include", HASH(0xc1361b0)) called at /usr/local/cpanel/Cpanel/Branding.pm line 66
       Cpanel::Branding::Branding_include("index.html") called at cpanel.pl line 1797
       eval {...} called at cpanel.pl line 1797
       main::_api1("Branding", "branding", "include(index.html)", "include", ARRAY(0xc171294), "safe_html_encode", undef, undef) called at cpanel.pl line 1727
       main::real_exectag("<?cp StatsBar::stat(\x{a}  [tr class=\"row-%\"]\x{a}  "...) called at cpanel.pl line 4104
       main::dotag_finished_headers(0) called at cpanel.pl line 3963
       main::cpanel_parseblock("<cpanel Branding=\"include(index.html)\">\x{a}") called at cpanel.pl line 3878
       main::y(GLOB(0xbbef9e4)) called at cpanel.pl line 5219
       main::run_standard_mode() called at cpanel.pl line 888
    
    
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you notice any error messages when updating the bandwidth/statistics for the account? EX:

    Code:
    /scripts/runweblogs $username
    Thank you.
     
  3. doropezaTSV

    doropezaTSV Member

    Joined:
    Nov 17, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Venezuela
    cPanel Access Level:
    Root Administrator
    Hello,

    I've executed the script and got the following result...


    Code:
    /scripts/runweblogs fabocca
    
    Log checker loaded ok..
    
    ==> cPanel Log Daemon version 26.0
    
    [2015-11-25 15:28:31 -0430] [sepxferlog]
    
    [2015-11-25 15:28:31 -0430] [sepxferlog] complete
    
    [2015-11-25 15:28:31 -0430] Processing fabocca...
    
    [2015-11-25 15:28:31 -0430] Run Logs domain: example.com.ve BW Limit: 26214400000 Domains: [domain.com.ve domaintoo.net.ve somedomain.com.ve exampletoo.com.ve examplethree.com domainthree.net otherdomain.com.ve v2.domain.com.ve] info [safeapacherestart] Restart elapsed seconds: 1
    
    [2015-11-25 15:28:52 -0430] Process bandwidth for fabocca Illegal division by zero at /usr/local/cpanel/Cpanel/BandwidthDB/ImportRRD/Logic.pm line 182.
     
    #3 doropezaTSV, Nov 26, 2015
    Last edited by a moderator: Nov 26, 2015
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...
Similar Threads - Illegal division zero
  1. gryzli
    Replies:
    11
    Views:
    634
  2. Chibifoxkit
    Replies:
    5
    Views:
    238

Share This Page