Project

General

Profile

Actions

Bug #31255

closed

CF: Could not create directory

Added by Steffen Gebert over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
Start date:
2011-10-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Installing TYPO3 in a directory, where the web server user has no write permissions at all ends up with a RuntimeException:

PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'Could not create directory!' in t3lib/class.t3lib_div.php:2909
Stack trace:
#0 t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php(201): t3lib_div::mkdir_deep('/var/www/typo3t...')
#1 t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php(99): t3lib_cache_backend_FileBackend->createFinalCacheDirectory('/var/www/typo3t...')
#2 t3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php(63): t3lib_cache_backend_FileBackend->setCache(Object(t3lib_cache_frontend_PhpFrontend))
#3 t3lib/cache/frontend/class.t3lib_cache_frontend_phpfrontend.php(45): t3lib_cache_frontend_AbstractFrontend->__construct('cache_phpcode', Object(t3lib_cache_backend_FileBackend))
#4 [internal function]: t3lib_cache_frontend_PhpFrontend->__construct('cache_phpcode', Object(t3lib_cache_backend_FileBackend))
#5 /var/www/typo3_sr in t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php on line 203

The bad thing is that modern browsers dont't show that Exception, but show just a Server Error page.

If possible, we should check, whether the directory is writable and then output a message, which finds its way to the user!

In doubt I'm fine with taking this from the 4.6.0 target.


Files

31255.diff (1.31 KB) 31255.diff Steffen Gebert, 2011-10-25 12:07

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Feature #11771: Check for write-permissions before installationClosedAlexander Opitz2010-12-29

Actions
Has duplicate TYPO3 Core - Bug #32306: Install tool fails silently if typo3temp is not writableRejected2011-12-05

Actions
Has duplicate TYPO3 Core - Bug #32842: Missing write permissions cause HTTP 500 errorClosed2011-12-27

Actions
Actions

Also available in: Atom PDF