[wp-trac] [WordPress Trac] #63058: Site Health: Directory size stuck in loading state
WordPress Trac
noreply at wordpress.org
Fri May 2 02:31:18 UTC 2025
#63058: Site Health: Directory size stuck in loading state
------------------------------+------------------------------
Reporter: shsajalchowdhury | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Site Health | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Changes (by dd32):
* keywords: reporter-feedback =>
* milestone: => Awaiting Review
Comment:
Identified this SQLite issue through this ticket:
https://github.com/WordPress/sqlite-database-integration/issues/178
although it's kinda unrelated.
As for the never ending `Loading...` here, this appears to be the
Javascript being unable to handle the result from the rest-api.
Running `wp.apiFetch( { path: "wp-site-health/v1/directory-sizes"} ).then(
console.log );` in the browser console in Playground results in `{code:
'not_available', message: 'Directory sizes could not be returned.', data:
{…}}` from the endpoint, suggesting the Site Health client JS isn't
processing the error condition well.
Error output:
https://github.com/WordPress/wordpress-
develop/blob/a788083247e256f48d9cc16941b3ede10b6b7ea6/src/wp-includes
/rest-api/endpoints/class-wp-rest-site-health-controller.php#L321
Playground not supporting size calculations is a bug, but slightly
unrelated to this.
The reason the error condition is being triggered is that the SQLite
implementation doesn't support DB Size calculations, which causes it to go
down the route of unavailable:
https://github.com/WordPress/wordpress-
develop/blob/a788083247e256f48d9cc16941b3ede10b6b7ea6/src/wp-
admin/includes/class-wp-debug-data.php#L1984-L1998
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63058#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list