[TYPO3-dev] Trying to make plugins compatible with Typo3 4.2

Oliver Hader oliver at typo3.org
Fri Feb 29 19:27:02 CET 2008


Hi Tapio,

Tapio Markula schrieb:
> It is difficult to get my plugins compatible with Typo3 4.2.
> 
> Some problems.
> 
> 1)  strcmp(trim($def['content'],'')); in XCLASS for template cause
> 
> Warning: Wrong parameter count for strcmp() in 
> .../typo3conf/ext/tm_shared_lib/class.ux_template.php on line 747

Hm, please recheck your code. You're calling trim($def['content'],'')...

> 2) private methods *Fatal error*: Call to private method 
> SC_mod_user_setup_index::getButtons() from context 
> 'ux_SC_mod_user_setup_index' in 
> *.../typo3conf/ext/tm_shared_lib/class.ux_SC_mod_user_setup_index.php* 
> on line *690*

That's a bug, the mentioned method should be "protected" instead of 
"private" to be XCLASSable.

olly
-- 
Oliver Hader
TYPO3 Core Team




More information about the TYPO3-dev mailing list