Problem/Motivation

On a fresh D11 install, the Site Audit Report will throw an error, because things are too good.

Steps to reproduce

Install a fresh D11 site.
Install Site Audit
Visit /admin/reports/site-audit
Observe error

DivisionByZeroError: Division by zero in Drupal\site_audit\Plugin\SiteAuditCheck\StatusSystem->calculateScore() (line 139 of /var/www/html/src/Plugin/SiteAuditCheck/StatusSystem.php).

Proposed resolution

Fix it.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork site_audit-3580535

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

froboy created an issue. See original summary.

  • 0a025dec committed on 4.x
    [#3580535] Fix divide by zero error
    
froboy’s picture

Version: 4.x-dev » 4.1.2
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.