[TYPO3-core] suggest is not an object

Stefan Frömken firma at sfroemken.de
Mon Sep 21 11:15:46 CEST 2009


Hello,

While creating a new page-record I get following warning:

Fatal error: Call to a member function init() on a non-object in 
C:\xampp_webserver\htdocs\t3lib\class.t3lib_tceforms.php on line 402

I'm not a programming professional, but I thing somebody tries to call 
this function directly...but first you have to execute code 365-367

For my installation I copy this three line to 402:

if (!isset($GLOBALS['ajaxID']) || strpos($GLOBALS['ajaxID'], 
't3lib_TCEforms_suggest::')!==0) {
$this->suggest = t3lib_div::makeInstance('t3lib_TCEforms_suggest');
}
$this->suggest->init($this);

Now I can create page-records again.

froemken

PS: I work with PHP 5.3.0 and TYPO3 4.3-dev for testing on Windows XP 
SP3 and 1.7.2 of XAMPP (apachefriends).


More information about the TYPO3-team-core mailing list