[BUGFIX] Class not found fatal in autoload
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 16 Oct 2011 17:16:36 +0000 (19:16 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 17 Oct 2011 19:25:04 +0000 (21:25 +0200)
If the caching framework configuration is broken and cache_phpcode
array is not set properly, cacheManager throws a fatal error unable
to find class t3lib_cache_exception_NoSuchCache. The patch adds the
class to be required during bootstrap so the exception (uncaught) is
actually thrown and hints an administrator on what exactly goes wrong.

Change-Id: I42ac66457776e1b4a4f8dca40e41f364d9496eed
Resolves: #30913
Reviewed-on: http://review.typo3.org/5881
Reviewed-by: Björn Pedersen
Reviewed-by: Xavier Perseguers
Reviewed-by: Dmitry Dulepov
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/config_default.php

index 7e9b8b6..0add931 100644 (file)
@@ -753,6 +753,7 @@ require(PATH_typo3conf.'localconf.php');
 function initializeCachingFramework() {
        require (PATH_t3lib . 'class.t3lib_cache.php');
        require (PATH_t3lib . 'cache/class.t3lib_cache_exception.php');
+       require (PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_nosuchcache.php');
        require (PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_invaliddata.php');
        require (PATH_t3lib . 'interfaces/interface.t3lib_singleton.php');
        require (PATH_t3lib . 'cache/class.t3lib_cache_factory.php');
@@ -1110,4 +1111,4 @@ $SIM_EXEC_TIME = $EXEC_TIME;                      // $SIM_EXEC_TIME is set to $EXEC_TIME but can be
 $ACCESS_TIME = $EXEC_TIME - ($EXEC_TIME % 60);         // $ACCESS_TIME is a common time in minutes for access control
 $SIM_ACCESS_TIME = $ACCESS_TIME;               // if $SIM_EXEC_TIME is changed this value must be set accordingly
 
-?>
+?>
\ No newline at end of file