[TYPO3] beta 3 - tca[pages] issue?
markus at 4eyes.ch
Wed Mar 1 00:23:16 CET 2006
I'm sorry, I've just remembered that tcemain is not supposed to be used
typo3 api -> "This means you cannot use TCEmain from the frontend scope"
Markus Stauffiger schrieb:
> Hi TYPO3-users
> I've just discovered a problem using the "pages" table with the
> I think there's a bug, because "dynamicConfigFile" is not set in
> If you agree, I'll add the bug to the bugtracker.
> Have a good time
> Reson to believe:
> If you'll do the following in an fe-extension:
> globals $TCA;
> You'll notice that there is no "dynamicConfigFile" entry (while all
> other tables seems to have that).
> Therefore an this script fails:
> require_once (PATH_t3lib."class.t3lib_tcemain.php");
> $tce = t3lib_div::makeInstance('t3lib_TCEmain');
> $tce->stripslashes_values = 0;
> $data['pages']['NEW1'] = array(
> 'title' => 'test',
> 'pid' => $this->getPersonalSysFolder(),
> 'hidden' => 0
> With this error message:
> Warning: Variable passed to each() is not an array or object in
> /home/..../t3lib/class.t3lib_tcemain.php on line 4122
> I've drilled down until I found that the t3lib_div::loadTCA('pages')
> fails because there's no dynamic config file.
> Adding the following statement solves the problem (locally):
> global $TCA;
> $TCA['pages']['ctrl']['dynamicConfigFile'] =
More information about the TYPO3-english