phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011336phplist applicationMessage Send Processpublic10-09-07 16:1022-05-12 16:01
Reporterecaron 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
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.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0051121)
gazouteast (reporter)
08-10-10 14:27

.

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;
    }

.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker