#109932Invalid insert position for root in new page wizard
Description
The page-position-select dialog shows a “Insert page” button a the same level as the root page:
.clipboard-202605311901-cbntm.png
This does not make sense and will lead to an error in the next wizard step:
.clipboard-202605311902-typgp.png
> PHP Runtime Deprecation Notice: str_starts_with(): Passing null to parameter #1 ($haystack) of type string is deprecated in typo3/sysext/backend/Classes/Form/FormDataCompiler.php line 64
The error also show a missing typecheck in \TYPO3\CMS\Backend\Form\FormDataCompiler::compile() where a non string value might be passed to str_starts_with() .