Issue Bug Closed

#21543t3lib_cache_exception_NoSuchCache exception is not thrown

Anonymous 11/13/09, 12:30 updated 10/02/18, 12:26

Description

When trying to create a cach that does not exist with the following code, and the caching framework disabled in typo3 by setting useCachingFramework to zero:

if (!($GLOBALS[‘typo3CacheManager’] instanceof t3lib_cache_Manager)) {
$GLOBALS[‘typo3CacheManager’] = t3lib_div::makeInstance(‘t3lib_cache_Manager’);
}
$pageCache = $GLOBALS[‘typo3CacheManager’]->getCache(‘cache_pages’);

It is expected that the t3lib_cache_exception_NoSuchCache exception is thrown, on error, but currently TYPO3 crashes with the following error message:
Fatal error: Call to a member function create() on a non-object in TYPO3_4_3/t3lib/class.t3lib_cache.php on line 62

I am using the trunk version, checked out a few minutes ago: Revision 6409
(issue imported from #M12579)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.