[BUGFIX] Vague error message in t3lib_div
authorDmitry Dulepov <dmitry@typo3.org>
Tue, 22 Nov 2011 14:44:08 +0000 (16:44 +0200)
committerTolleiv Nietsch <info@tolleiv.de>
Fri, 13 Jan 2012 00:55:10 +0000 (01:55 +0100)
If the web server cannot write to typo3temp/, a vague error
message may appear: "File not written to disk! Write
permission error in filesystem?". Fix the issue by hinting
the user where he should check permissions.

Change-Id: I96c19bb4f73df60f16286c6b4da14b3ef3e87700
Resolves: #18545
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/7510
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Oliver Klee
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/class.t3lib_div.php

index 948aefd..ae6ef75 100644 (file)
@@ -3297,7 +3297,7 @@ final class t3lib_div {
                                                        if ($filepath == $dirName . $fI['basename']) {
                                                                self::writeFile($filepath, $content);
                                                                if (!@is_file($filepath)) {
-                                                                       return 'File not written to disk! Write permission error in filesystem?';
+                                                                       return 'The file was not written to the disk. Please, check that you have write permissions to the typo3temp/ directory.';
                                                                }
                                                        } else {
                                                                return 'Calculated filelocation didn\'t match input $filepath!';