Bug #89358
closedSelect tree cause 500 Internal server error in flexform
100%
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
Updated by Frank Nägler about 5 years ago
- Status changed from New to Accepted
- Assignee set to Frank Nägler
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
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
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
Updated by Frank Nägler about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d42d410631d52969a62dfef55f4505e7ae5b7246.
Updated by Pixelant Developer about 5 years ago
- File categories_tree.png categories_tree.png added
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