Make WordPress Core

Opened 7 weeks ago

Closed 7 weeks ago

#61745 closed defect (bug) (duplicate)

Site health: directory sizes not shown (if font directory doesn't exist?)

Reported by: leedxw's profile leedxw Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.6.1
Component: Site Health Keywords:
Focuses: Cc:

Description

Site health shows

WordPress directory size	Loading…
Uploads directory size	Loading…
Themes directory size	Loading…
Plugins directory size	Loading…
Fonts directory size	Loading…
Database size	Loading…
Total installation size	Loading…

I can see that /wp-json/wp-site-health/v1/directory-sizes returns 500, but doesn't generate an error log.

{
    "code": "not_available",
    "message": "Directory sizes could not be returned.",
    "data": {
        "status": 500
    }
}

Looking at wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php the value of total_size is not available, and this means no other values get reported.

Looking at wp-admin/includes/class-wp-debug-data.php if fonts_size is unpopulated, then total_size is unpopulated.

fonts_path is wp_get_font_dir()['basedir'] which points at (I assume the default) .../wp-content/uploads/fonts - but this directory doesn't seem to exist on existing systems.

Change History (2)

#1 @leedxw
7 weeks ago

Oh I'd missed #61638 which this looks to be a duplicate of.

#2 @leedxw
7 weeks ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #61638.

Note: See TracTickets for help on using tickets.