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 #1

Updated by Frank Nägler about 5 years ago

  • Status changed from New to Accepted
  • Assignee set to Frank Nägler
Actions #2

Updated by Gerrit Code Review about 5 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61905

Actions #3

Updated by Frank Nägler about 5 years ago

@Pixelant Developer, could you please verify that the fix works: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61905

Actions #4

Updated by Gerrit Code Review about 5 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61918

Actions #5

Updated by Frank Nägler about 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Pixelant Developer about 5 years ago

Frank Naegler wrote:

@Pixelant Developer, could you please verify that the fix works: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61905

It fixes an php error, but tree remains empty on TYPO3 v10.1 even when ajax return items

Actions #7

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF