Project

General

Profile

Actions

Bug #26741

closed

Error at renderMode tree

Added by Arno Dudek over 13 years ago. Updated about 12 years ago.

Status:
Rejected
Priority:
Must have
Category:
Backend User Interface
Target version:
-
Start date:
2011-05-11
Due date:
% Done:

0%

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

Description

Using v4.5.0 / v4.5.2
Firefox 4.0.1

I got an PHP error in the Log-Module when using the renderMode tree in TCA:

Core: Error handler (BE): PHP Warning: Missing argument 2 for extDirect_DataProvider_BackendUserSettings::addToList() in /Volumes/Jobs/adgrafik/000000-TYPO3 Develop/typo3_4.5.2.ip.dev/t3lib/extjs/dataprovider/class.extdirect_dataprovider_beusersettings.php line 107

This happens when the form is open.

Found the line where the problem is:
File class.t3lib_tceforms_tree.php (3 matches) Line 176

expandnode: function(node) {
    top.TYPO3.BackendUserSettings.ExtDirect.addToList("tcaTrees." + this.ucId, node.attributes.uid);
}

TCA-config:

'type' => 'select',
'size' => 3,
'autoSizeMax' => 15,
'minitems' => 0,
'maxitems' => 99,
'foreign_table' => 'tx_ext_domain_model_category',
'foreign_table_where' => 'AND (tx_ext_domain_model_category.sys_language_uid = 0 OR tx_ext_domain_model_category.l18n_parent = 0) ORDER BY tx_ext_domain_model_category.sorting',
'MM' => 'tx_ext_category_layer_mm',
'MM_opposite_field' => 'layers',
'renderMode' => 'tree',
'treeConfig' => array(
    'parentField' => 'parent_category',
    'appearance' => array(
        'expandAll' => true,
        'showHeader' => true,
    ),
),

Tracing the variable node.attributes with firebug:

Object { iconCls="t3-icon t3-icon-tcareco..._model_category-default", text="c-test", mehr...}
Object { iconCls="t3-icon t3-icon-tcareco..._model_category-default", text="Category", mehr...}
Object { text="TYPO3 StandardTree", id="root", mehr...}

The first line is the category, the second the root. The last one have no uid set.

Hope this will help.

lg arno


Files

first_run.png (194 KB) first_run.png Arno Dudek, 2011-09-14 09:26
second_run.png (202 KB) second_run.png Arno Dudek, 2011-09-14 09:26

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #31978: tcaTree: PHP Warning: Missing argument 2 for extDirect_DataProvider_BackendUserSettings::addToList()Closed2011-11-22

Actions
Actions

Also available in: Atom PDF