There seems to be a endless loop for CType menu_section when rendering itself.
To Reproduce
Steps to reproduce the behavior:
Create a CType menu_section on any page
Make sure it's got sectionIndex=1
Try to render the frontend
Expected behavior
A clean section index being rendered.
Error
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 36864 bytes) in /var/www/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/MenuContentObjectFactory.php on line 52
TYPO3 version and TYPO3 Headless version
TYPO3 12 / EXT:headless 4.x
Additional context
Problem is that the items of the section index are all being fetched via FriendsOfTYPO3\Headless\DataProcessing\DatabaseQueryProcessor and rendered as tt_content is defined. And that's the cause of the endless loop.
Suggestion
Only render those fields of the items that are really necessary: uid and header that is?
tt_content.menu_section.fields.content.fields.menu.dataProcessing.10.dataProcessing.20 {
fields {
uid = TEXT
uid.field = uid
header = TEXT
header.field = header
}
}
Describe the bug
There seems to be a endless loop for CType
menu_section
when rendering itself.To Reproduce Steps to reproduce the behavior:
menu_section
on any pagesectionIndex=1
Expected behavior A clean section index being rendered.
Error Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 36864 bytes) in /var/www/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/MenuContentObjectFactory.php on line 52
TYPO3 version and TYPO3 Headless version TYPO3 12 / EXT:headless 4.x
Additional context
Problem is that the items of the section index are all being fetched via
FriendsOfTYPO3\Headless\DataProcessing\DatabaseQueryProcessor
and rendered astt_content
is defined. And that's the cause of the endless loop.Suggestion
Only render those fields of the items that are really necessary:
uid
andheader
that is?