Bug #29075
closedempty temp_CACHED_..._tables.php
100%
Description
Rarely, but sometimes it happens that the temp_CACHED_..._ext_tables.php file remains empty.
(This probably happens because of a PHP-timeout during writing while high server load or disk error etc...)
With this empty file you can still log into the BE (in 4.2 you can even see some modules; but no extension-modules or -contents).
Also, everything that's in the cache is displayed correctly in the FE. Uncached elements in FE however result in the known enableFields()-error.
Now, this all isn't too grave but we get to our problem by speaking of CronJobs.
As an example I'll take direct_mail to explain the problem:
dmail uses the following function to check for deleted emails:
t3lib_BEfunc::deleteClause('sys_dmail')
This returns '' if extension-tca is empty:
http://doxygen.frozenkiwi.com/typo3/html/d4/da8/class_8t3lib__befunc_8php_source.html#l00203
Now, direct_mail happily starts sending deleted newsletters if temp_CACHED_..._tables.php is empty.
Probably, there are more extensions/cronjobs etc. that use this and similar functions and therefore are doing weird things...
The solution now probably would be to treat empty temp_CACHED_* files as they wouldn't exist and to newly build them...
This would also help to avoid many of "there is no TCA-Definition"-errors on up and running live-sites.
This Bug affects all TYPO3-Versions from 4.2 to 4.5
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change I855034048eca142153badd2567fb2bf6dfbc2629 has been pushed to the review server.
It is available at http://review.typo3.org/4420
Updated by Jigal van Hemert over 13 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset 3af185b634a1363daeda88bcedc6cd20069e733a.