[wp-trac] [WordPress Trac] #59300: Site Health Check causes PHP errors when WP_CONTENT_DIR . '/upgrade/' doesn't exist

WordPress Trac noreply at wordpress.org
Thu Sep 7 19:11:52 UTC 2023


#59300: Site Health Check causes PHP errors when WP_CONTENT_DIR . '/upgrade/'
doesn't exist
-------------------------------+------------------------------
 Reporter:  MadtownLems        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Site Health        |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by Michi91):

 * keywords:   => reporter-feedback


Comment:

 I cant reproduce the Problem.
 {{{#!php
 <?php
 $available_space = function_exists( 'disk_free_space' ) ?
 @disk_free_space( WP_CONTENT_DIR . '/upgrade/' ) : false;
 }}}

 The @ supresses errors, but this can be overwritten by using a custom
 error handler.
 https://www.php.net/manual/en/language.operators.errorcontrol.php

 Are you using plugins or a special enviroment changes the logging / error
 handling behavior?

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


More information about the wp-trac mailing list