Project

General

Profile

Actions

Bug #27957

closed

TCA tree somehow causes fatal error when using in inline record (IRRE)

Added by Thomas Deinhamer almost 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Category:
FormEngine aka TCEforms
Target version:
Start date:
2011-07-07
Due date:
% Done:

100%

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

Description

Hello folks!

When using the following configuration for
a select field rendered as tree, it's neither
possible to expand inline records, nor to create
new inline records, because the page renderer,
called through the AJAX request, throws an
exception - also mentioned below.

'included_categories' => array(
    'exclude' => 1,
    'label' => 'LLL:EXT:hype_store/Resources/Private/Language/locallang_db.xml:tx_hypestore_domain_model_discount.included_categories',
    'config' => array(
        'type' => 'select',
        'foreign_table' => 'tx_hypestore_domain_model_category',
        'MM' => 'tx_hypestore_relation_discount_category',
        'MM_opposite_field' => 'discounts',
        'MM_match_fields' => array(
            'exclude' => 0
        ),
        'minitems' => 0,
        'maxitems' => 999999,

        'renderMode' => 'tree',
        'treeConfig' => array(
            'parentField' => 'parent_category',
            'appearance' => array(
                'expandAll' => TRUE,
                'showHeader' => TRUE
            ),
        ),
    ),
)

The error thrown (ajax response) is...

#1284906026: Language and character encoding are not set.

... which occurs in the file class.t3lib_pagerenderer.php in line 1795.

If I remove the "TCA tree configuration" everything works. The tree also
works, if the record is opened directly. If opened as inline record,
the described behaviour occurs.


Files

T3X_inline500error.t3x (12.9 KB) T3X_inline500error.t3x Demo extension for TCA tree error 500 Alexander Jahn, 2011-10-04 12:02

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #35244: TCAtree inline record triggers Closed2012-03-26

Actions
Has duplicate TYPO3 Core - Bug #31640: TCA: IRRE Inline records + renderMode "tree" -> "Error 500, Internal Server Error"Closed2011-11-07

Actions
Actions

Also available in: Atom PDF