Reinstalling felogin throws errors
I uninstalled and reinstalled felogin
and then I get this error in the frontend:
Uncaught TYPO3 Exception #1303237468: Given select field item list was not found. RuntimeException thrown in file \t3lib\class.t3lib_extmgm.php in line 476. 5 t3lib_extMgm::addTcaSelectItem("tt_content", "CType", array, "mailform", "after")
I tried clearing all cache files etc.
but the error only goes away if I uninstall it.
This happens on windows, not sure
if it will also happen on linux.
Updated by Thomas Deinhamer almost 9 years ago
K, this error comes up if I uninstall
css_styled_content; it seems the felogin
is more dependent on csc as I thought.
The problem in detail is, that "addTcaSelectItem"
tries to load the TCA for tt_content, but fails to
load the whole TCA, because before somewhere in
another extension, the TCA array is filled with
some configuration, without loading the whole
Meaning, "loadTCA" only loads the TCA, if the
TCA[$table] array is EMPTY, but if some extension
pre-populates TCA[$table] with any data, "loadTCA"
just won't load the default/whole TCA.
Thats why the code in "addTcaSelectItem" throws
an error - because the TCA['tt_content'] is available,
but the column 'CType' is not available inside it.
Updated by Alexander Stehlik over 8 years ago
After digging into this I figured out two things.
First: the problem is not caused by css_styled_content. At the beginning of it's
ext_tables.php file it calls
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:css_styled_content/flexform_ds.xml', 'table');
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content'); at the beginning, so another loadTca() would be superfluous.
Second: The problem can only be reproduced, when the extensions are loaded in a defined order. Put this order into you
'form', 'css_styled_content', 'felogin',
Now you can clear all caches and reload your Frontend. You will see the exception.