[TYPO3-dev] Backend Tranformation RTE
Richard Davies
richard at ocular.co.nz
Wed Mar 14 23:56:55 CET 2012
Hi all,
I'm attempting to transform an RTE element in the backend (I need it to
transform an RTE to email). I've sucessfully created FE cObjs in eID
scripts, however using the same code in the backend renders an error:
Call to a member function push() on a non-object in
..typo3_src-4.5.10/typo3/sysext/cms/tslib/class.tslib_fe.php on line 2079
determineId
$GLOBALS['TT']->push('Parse template','');
Typo3 version 4.5.10
I've seen a bug report on the same issue in 4.3 and it says it is resolved.
Is this still an issue or is it just not possible? Should I instead call an
eID/AJAX script to avoid whatever conflict/issue is causing $GLOBALS['TT']
to be empty?
Code:
if (version_compare(TYPO3_version, '4.3', '<')) {
$tsfeClassName =
t3lib_div::makeInstanceClassName('tslib_fe');
$GLOBALS['TSFE'] = new $tsfeClassName($TYPO3_CONF_VARS,
$this->pageId, '');
}
else {
$GLOBALS['TSFE'] = t3lib_div::makeInstance('tslib_fe',
$TYPO3_CONF_VARS, $this->pageId, '');
}
$GLOBALS['TSFE']->connectToDB();
$GLOBALS['TSFE']->initFEuser();
$GLOBALS['TSFE']->checkAlternativeIdMethods();
$GLOBALS['TSFE']->determineId();
$GLOBALS['TSFE']->getCompressedTCarray();
$GLOBALS['TSFE']->initTemplate();
$GLOBALS['TSFE']->getConfigArray();
...
$parseFunc = $vars['parseFunc_RTE.'];
if (is_array($parseFunc)) { $str = $this->cObj->parseFunc($str,
$parseFunc);}
If I try to comment out the function calls causing the error (checkalt,
determineid and getconfig all error out on GLOBALS[TT]), cObj->parseFunc
returns nothing.
Thanks
Richard
More information about the TYPO3-dev
mailing list