Project

General

Profile

Actions

Bug #21489

closed

Object does not support method calls - PHP 5.3

Added by Dan Osipov about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
-
Start date:
2009-11-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

0012500.patch (479 Bytes) 0012500.patch Administrator Admin, 2009-11-23 10:52
Actions #1

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 ?

Actions #2

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.

Actions #3

Updated by Dan Osipov about 15 years ago

FYI: attached patch fixes the issue for me

Actions #4

Updated by Oliver Hader about 15 years ago

Committed to SVN:
  • TYPO3_4-2 (rev. 6495)
  • Trunk (rev. 6496)
Actions

Also available in: Atom PDF