TYPO3 Exception 1224485398
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.
Templating tags not properly nested
#1224485398: Templating tags not properly nested. Expected: TYPO3\CMS\Fluid\ViewHelpers\Link\ExternalViewHelper;
Actual: TYPO3\CMS\Fluid\ViewHelpers\Link\UriViewHelper
This error is triggered when the parser is finding that tags are not properly nested. Consult the manual for the correct nesting possibilities.
Solution
You have to nest the ViewHelpers correctly, for example:
<f:link.external ..> needs </f:link.external>
Hint
Most of the time this error will be triggered if you forget to correctly close a single tag with a slash. (e.g. you need to use <f:example /> not <f:example>)
Error in ViewHelper
If a viewHelper is not properly programmed, any argument might break templates. It's important to register all arguments properly to get the templates parsed correctly. To test a ViewHelper, remove all arguments in the fluid template to check if the nesting is recognized right without arguments. The error message is misleading in this case because the reason is not related to the notation in the template but to faults in the ViewHelper.