[wp-trac] [WordPress Trac] #61602: site health - disk_free_space return error

WordPress Trac noreply at wordpress.org
Tue Jul 9 14:23:37 UTC 2024


#61602: site health - disk_free_space return error
--------------------------+------------------------------
 Reporter:  wbdv          |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Site Health   |     Version:  6.5.5
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by mi5t4n):

 I tested this but could not replicate the issue. The `disk_free_space`
 function is suppressed and returns false on failure.

 {{{#!php
 <?php
 File: src\wp-admin\includes\class-wp-site-health.php
 1820:           $available_space = function_exists( 'disk_free_space' ) ?
 @disk_free_space( WP_CONTENT_DIR . '/upgrade/' ) : false;
 }}}

 If you could tell us what is your environment like PHP version and WP
 version, that will help use replicate the issue.

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


More information about the wp-trac mailing list