View Issue Details

IDProjectCategoryView StatusLast Update
0011336phplist applicationMessage Send Processpublic22-05-12 15:01
Reporterecaron 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.11.3 
Target Version4.0.xFixed in Version2.11.7 
Summary0011336: Division by zero error in processqueue.php
DescriptionError log keeps getting this (when processqueue is run with nothing to process against 2 mailing lists of about 30,000):
PHP Warning: Division by zero in /var/www/html/jobdig/etreat/admin/processqueue.php on line 770

This can be fixed by changing line 770 to this:
$secpermsg = (($sent) ? $totaltime / $sent : 0);
TagsNo tags attached.

Activities

gazouteast

08-10-10 13:27

reporter   ~0051121

.

In 2.10.12 the original code was -

    $totaltime = $GLOBALS['processqueue_timer']->elapsed(1);
    $msgperhour = (3600/$totaltime) * $sent;
    if ($sent) {
      $secpermsg = $totaltime / $sent;
    } else {
      $secpermsg = 0;
    }

.