Project

General

Profile

Actions

Bug #89358

closed

Select tree cause 500 Internal server error in flexform

Added by Pixelant Developer about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2019-10-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Select tree doesn't work in flexform. When open plugin in edit mode get "undefined - 500 Internal Server Error" error.

(1/1) TypeError
Argument 1 passed to TYPO3\CMS\Core\Http\JsonResponse::setPayload() must be of the type array, null given, called in /var/www/typo3_10_dev/public/typo3/sysext/backend/Classes/Controller/FormSelectTreeAjaxController.php on line 182

Flexform field configuration:

<settings.list.entryNavigationCategory>
    <TCEforms>
        <label>LLL:EXT:pxa_product_manager/Resources/Private/Language/locallang_be.xlf:flexform.list.entry_navigation_category</label>
        <config>
            <type>select</type>
            <renderType>selectTree</renderType>
            <treeConfig>
                <parentField>parent</parentField>
                <appearance>
                    <maxLevels>99</maxLevels>
                    <expandAll>1</expandAll>
                    <showHeader>1</showHeader>
                </appearance>
            </treeConfig>
            <foreign_table>sys_category</foreign_table>
            <foreign_table_where> AND sys_category.sys_language_uid IN (-1, 0) ORDER BY sys_category.sorting ASC</foreign_table_where>
            <size>10</size>
            <autoSizeMax>20</autoSizeMax>
            <minitems>1</minitems>
            <maxitems>1</maxitems>
        </config>
    </TCEforms>
</settings.list.entryNavigationCategory>

Files

categories_tree.png (151 KB) categories_tree.png Pixelant Developer, 2019-10-09 10:05
Actions

Also available in: Atom PDF