Bug #40795
closedTask #40095: Move core to namespaces
Exception in TCA tree after Namespace changes
100%
Description
When trying to create a new "News Category" record in the list module, the following Exception is thrown:
#1: PHP Catchable Fatal Error: Argument 1 passed to TYPO3\CMS\Backend\Tree\AbstractTree::setNodeRenderer() must be an instance of t3lib_tree_renderer_Abstract, instance of TYPO3\CMS\Core\Tree\TableConfiguration\ExtJsArrayTreeRenderer given, called in C:\xampp\htdocs\currenttruk\typo3\sysext\backend\Classes\Form\Element\TreeElement.php on line 91 and defined in C:\xampp\htdocs\currenttrunk\typo3\sysext\backend\Classes\Tree\AbstractTree.php line 7
This happens with current TYPO3-Core from Git (6.0-dev) and current Git-Version from tx_news (but seems to be a bug in the core, since the extension only tries to use a field-type from TCA).
Updated by Claus Due about 12 years ago
Note, this appears to happen because t3lib_tree_renderer_Abstract is no longer part of the inheritance tree for \TYPO3\CMS\Backend\Tree\AbstractTree.
It will no longer be possible to check for implementations of parent classes and interfaces (in a way that works equally on pre-6.0 and 6.0). Sorry guys.
Updated by Tymoteusz Motylewski about 12 years ago
this is indeed bug in core
method
TYPO3\CMS\Backend\Tree\AbstractTree::setNodeRenderer [1]
is defined as:
public function setNodeRenderer(\t3lib_tree_renderer_Abstract $nodeRenderer) {
but it should use namespaced class name
Updated by Gerrit Code Review about 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14508
Updated by Georg Ringer about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 434e8629c40212545e4562718e442f3655c211e4.