Project

General

Profile

Actions

Bug #54476

closed

Unknown Exception in Caching framwork

Added by Jan-Erik Revsbech almost 11 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2013-12-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

While debugging af problem with a typo 6.2-beta2 sites (also tried with master), I stumbled upon this error in my server logs

PHP Fatal error:  Class 'TYPO3\\CMS\\Core\\Cache\\Exception' not found in /usr/local/src/typo3/typo3_src-6.2.0beta2/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 241

The problems is that if there is an error writing the cache files in SimpleFileBackend (thats the problem I am investigating), SimpleFileBackend tries to throw a new \TYPO3\CMS\Core\Cache\Exception which results in an error because the Exception is not loaded due to the CloassLoader cache being deleteded!

I'm not sure what the best way to solve this is. Either we throw a regular \Exception, we require the file manually if it is not defined, or we alter the classloader to somehow handle this edge-case? Any suggestions?

Actions

Also available in: Atom PDF