Bug #67931
closedeID ajax-call Error because tca not loaded fully
0%
Description
I make us of eID in one extension, its that kind of full-typo3-bootstrap eID, i know it is not recommended to do so, but i didnt know it when i implemented it.
Anyway - the call worked with 7.3 but does not work with the current master, i needed to checkout the current master because indexed_search / autoloading was messed up in 7.3.1.
Error:
There is no entry in the $TCA array for the table "pages". This means that the function enableFields() is called with an invalid table name as argument.
This is my bootstraproutine:
$GLOBALS['TSFE'] = Utility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController',$GLOBALS['TYPO3_CONF_VARS'],NULL,0); /* @var $GLOBALS['TSFE'] Frontend\Controller\TypoScriptFrontendController */ Frontend\Utility\EidUtility::initLanguage(); $GLOBALS['TSFE']->connectToDB(); $GLOBALS['TSFE']->initFEuser(); $GLOBALS['TSFE']->checkAlternativeIdMethods(); $GLOBALS['TSFE']->clear_preview(); $GLOBALS['TSFE']->determineId(); $GLOBALS['TSFE']->initTemplate(); $GLOBALS['TSFE']->getConfigArray(); $GLOBALS['TSFE']->cObj = Utility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer'); $GLOBALS['TSFE']->settingLanguage(); $GLOBALS['TSFE']->settingLocale(); \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadCachedTca();
The trace is attached.
Files
Updated by Benni Mack over 9 years ago
- Status changed from New to Needs Feedback
Hey Philipp,
the call
\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadCachedTca();
must happen right after "initFEuser()" - can you try that again please?
Updated by Wouter Wolters over 9 years ago
Use \TYPO3\CMS\Frontend\Utility\EidUtility::initTCA() please for the correct API.
Updated by Philipp Wrann over 9 years ago
Yes, thanks both of you:
EidUtility::initTCA();
directly after
TyposcriptFrontendController::initFEuser();
does the job.
Updated by Alexander Opitz over 9 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
7.4 (Backend))
Thanks for feedback.