• I got php warning from Query Monitor plugin on Filesystem Permission check when current active theme is installed as symlink from another directory.

    Warning: unlink(D:\path\to\website/wp-content/app/themes/my-theme/../2064168285ed95fb8a3c47.tmp): No such file or directory

    Then I realized includes/class-health-check-debug-data.php#L317 is using get_template_directory() . '/..', when I tried to change it to get_theme_root(), the issue is gone.

    The reason is win_is_writable() which is invoked by wp_is_writable(), and it seems couldn’t handle creating and deleting temporary file when the $path parameter contains /...

  • The topic ‘PHP Warning on Filesystem Permission check’ is closed to new replies.