Improved Permissions Error Messages for Initial Install (#2435)

- Made the wording of the error more generic
- Added link to the relevant section in the installation guide

Resolves #2327.
This commit is contained in:
Nina Pypchenko 2020-11-08 06:48:11 +11:00 committed by GitHub
parent 0ae19a3da6
commit de5d9644cf

View File

@ -53,7 +53,7 @@ class WritablePaths implements PrerequisiteInterface
})->map(function ($path, $index) {
return [
'message' => 'The '.$this->getAbsolutePath($path).' directory is not writable.',
'detail' => 'Please chmod this directory'.(in_array($index, $this->wildcards) ? ' and its contents' : '').' to 0775.'
'detail' => 'Please make sure your web server/PHP user has write access to this directory'.(in_array($index, $this->wildcards) ? ' and its contents' : '').'. Read the <a href="https://docs.flarum.org/install.html#folder-ownership">installation documentation</a> for a detailed explanation and steps to resolve this error.'
];
});
}