Project

General

Profile

Actions

Bug #44897

closed

Using tslib_eidtools leads to: "Fatal error: Call to private method tslib_eidtools::getTSFE() from context '"

Added by Christian Platt almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-01-29
Due date:
% Done:

0%

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

Description

When using a small snippet as eID Part of an extension like the following:

class unsereKlasse {

public function main() {
$feUserObject = tslib_eidtools::initFeUser();
$TSFEObject = tslib_eidtools::getTSFE();
return json_encode(array('myResult' => 'World'));
}

}

$output = t3lib_div::makeInstance('unsereKlasse');
echo $output->main();

however it returns a
"Fatal error: Call to private method tslib_eidtools::getTSFE() from context '"

Which should not be. The error is reproducible.

It seems that the error was entered into typo here
http://git.typo3.org/TYPO3v4/Core.git/commitdiff/0eea8829feb942e2be5de20d3ab2241a9711bfac

Actions

Also available in: Atom PDF