TYPO3 Exception 1442236317¶
Note
Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.
General TYPO3 troubleshooting tips can be found in the Troubleshooting section in the menu. You can also ask questions and receive support in the TYPO3 Questions category on talk.typo3.org.
To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.
TYPO3 12.4.17 - 29.07.2024¶
caption: Exception Message
MenuItem "" is not valid
Situation¶
Right after an update from TYPO3 11 to 12. Forgot to clear the cache
Solution¶
Clear all caches from install tool or console
TYPO3 12.4.14 - 17.05.2024¶
caption: Exception Message
MenuItem "Liste" is not valid
Situation¶
Trying to add a menu Item to the menu in a custom backend module:
$menu = $moduleTemplate->getDocHeaderComponent()->getMenuRegistry()->makeMenu();
$menuItem = $menu->makeMenuItem()
->setTitle($menuItemConfig['label'])
->setHref($this->uriBuilder->reset()->uriFor($menuItemConfig['action'], [], $menuItemConfig['controller']))
->setActive($isActive);
$menu->addMenuItem($menuItem);
This exception is thrown when the title or the href of the menuitem are empty. In this case the UriBuilder returned an emptry result, therefore the Href was empty.
Solution¶
Fix the href generation.