From 49df4445e2dc97573a576c5e9c7b497ae2c499a3 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 2 Jan 2020 06:02:49 -0500 Subject: [PATCH] Suppress missing root .htaccess file error in SystemUpdateChecks since the checks wouldn't even be able to run if an .htaccess or suitable replacement file wasn't already present. Fixes processwire/processwire-issues#1059 --- wire/modules/System/SystemUpdater/SystemUpdaterChecks.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wire/modules/System/SystemUpdater/SystemUpdaterChecks.php b/wire/modules/System/SystemUpdater/SystemUpdaterChecks.php index 2f6f29df..974185cd 100644 --- a/wire/modules/System/SystemUpdater/SystemUpdaterChecks.php +++ b/wire/modules/System/SystemUpdater/SystemUpdaterChecks.php @@ -168,7 +168,8 @@ class SystemUpdaterChecks extends Wire { return false; } } else { - if($this->showNotices) $this->warning($this->fileNotFoundLabel($htaccessFile)); + // if .htaccess not present then this is likely an IIS or other not-offically supported server software + // if($this->showNotices) $this->warning($this->fileNotFoundLabel($htaccessFile)); return false; }