Bug #21489
closedObject does not support method calls - PHP 5.3
0%
Description
PHP Fatal error: Object does not support method calls in C:\wamp\www\pb_trunk\t3lib\class.t3lib_tceforms.php on line 577
this line calls function getDivider, which is implemented as:
/**
* Returns divider.
* Currently not implemented and returns only blank value.
*
* @return string
*/
function getDivider() {
//return "<hr />";
}
Since there is no return value, it crashes PHP & Apache
(issue imported from #M12500)
Files
Updated by Rupert Germann about 15 years ago
hi Dan,
I clicked quite a lot around in tceforms in the TYPO3 backend the last days - never had something like this.
Can you provide some further details how you got this error ?
Updated by Dan Osipov about 15 years ago
Got it while trying to edit a tt_news record ;)
Creating new records is fine.
I'm on a Windows machine with Apache 2.2.11 with PHP 5.3 (latest WAMPserver installation).
Also, adding a return statement to the mentioned record, so that it at least returns an empty string (which it should) resolves the problem. I can make a patch, but I think there might be a better solution.
Updated by Dan Osipov about 15 years ago
FYI: attached patch fixes the issue for me
Updated by Oliver Hader almost 15 years ago
- TYPO3_4-2 (rev. 6495)
- Trunk (rev. 6496)