Forums

Head Cleaner
With debug enabled, occasional divide by zero warning (2 posts)

  1. bswopes
    Member
    Posted 1 year ago #

    Minor issue, but in case anyone else runs into it...

    I've been occasionally seeing this on one of my sites:

    PHP Warning: Division by zero in /var/www/vhosts/1/plugins/head-cleaner/head-cleaner.php on line 2551, referer: http

    Line in question is in the function _process_time():

    round(($this->org_len - $this->ret_len) / $this->org_len * 100, 2) . '%' ,

    Turns out this is just in calculating the savings when you have debug enabled. Turn it off and you should stop seeing the warning.

    http://wordpress.org/extend/plugins/head-cleaner/

  2. wokamoto
    Member
    Posted 1 year ago #

    Sorry. It is bug, corrected it with Ver.1.4.2 or later.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic