[BUGFIX] Vague error message in t3lib_div
authorDmitry Dulepov <dmitry@typo3.org>
Tue, 22 Nov 2011 14:44:08 +0000 (16:44 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Sat, 24 Dec 2011 12:34:12 +0000 (13:34 +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: I5509461e6dd48b5a60963a478f0643309c889901
Resolves: #18545
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/6853
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Oliver Klee
Reviewed-by: Mario Rimann
Reviewed-by: Philipp Gampe
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf

index 925de8c..7e8970c 100644 (file)
@@ -2879,7 +2879,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!';