Project

General

Profile

Actions

Bug #67931

closed

eID ajax-call Error because tca not loaded fully

Added by Philipp Wrann over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-07-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

trace.htm (7.2 KB) trace.htm Philipp Wrann, 2015-07-06 18:01
Actions #1

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?

Actions #2

Updated by Wouter Wolters over 9 years ago

Use \TYPO3\CMS\Frontend\Utility\EidUtility::initTCA() please for the correct API.

Actions #3

Updated by Philipp Wrann over 9 years ago

Yes, thanks both of you:

EidUtility::initTCA();

directly after

TyposcriptFrontendController::initFEuser();

does the job.

Actions #4

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to Closed
  • Target version deleted (7.4 (Backend))

Thanks for feedback.

Actions

Also available in: Atom PDF