[TYPO3-dev] Bug in TYPO3 4.2.9 ?

JéŽrô™me Schneider j.schneider at ameos.com
Thu Oct 22 14:15:23 CEST 2009


Hi people,

I may have found a bug in the way TYPO3 handles the TCA for table "pages".

Unlike other tables, columns for "pages" are hardcoded directly inside 
the declaration of $TCA (in file /typo3/t3lib/stddb/tables.php) instead 
of relying on the 'dynamicConfigFile' TCA entry.

It happens that in 
/typo3/sysext/cms/tslib/class.tslib_fe.php::getCompressedTCarray(), at 
line 2184, the $TCA (already containing the definition for 
pages:columns) is replaced with another array, built some lines above, 
but dropping the "columns" key during process.

We then are left with a TCA array that does not contain any "columns" 
section for any table. Which, for most tables, is OK as 
t3lib_div::loadTCA() is designed to rebuild this "columns" section on 
demand, using "dynamicConfigFile"; but for pages, remember, this is not set.

We end up with a TCA array containing no definition for pages:columns, 
even after a loadTCA().

Could someone confirm this ?

PS: TYPO3 4.2.9

Regards,
Jerome Schneider




More information about the TYPO3-dev mailing list