[wp-trac] [WordPress Trac] #61736: WP Site Health doesn't work if `wp-content/uploads/fonts` directory doesn't exist

WordPress Trac noreply at wordpress.org
Wed Jul 24 05:39:59 UTC 2024


#61736: WP Site Health doesn't work if `wp-content/uploads/fonts` directory doesn't
exist
------------------------------+------------------------------
 Reporter:  jkmassel          |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Site Health       |     Version:  trunk
 Severity:  major             |  Resolution:
 Keywords:  has-testing-info  |     Focuses:
------------------------------+------------------------------
Changes (by narenin):

 * keywords:   => has-testing-info
 * severity:  normal => major


Comment:

 Hi,

 I have also try to replicate the issue and it is showing the same behavior
 at my end.

 Environment

     WordPress: 6.6.1
     PHP: 8.1.23
     Server: nginx/1.16.0
     Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.23)
     Browser: Chrome 126.0.0.0 (macOS)
     Theme: Twenty Nineteen 2.8

 Also this is happening because if we are getting 'not available' value for
 the given variable
 {{{
 $all_sizes['total_size']['debug']
 }}}

 then we are passing status 500 in API response due to which all data
 related to directory showing 'loading...' while it should show only
 'loading...' for only directory which does not has data.

 **API URL :** https://site-url/wp-json/wp-site-health/v1/directory-sizes

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61736#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list