Closed binron closed 7 years ago
https://github.com/codefog/contao-haste/commit/05879ee4fed58575574f03341243cd1378149d36 solves the problem too, but recursiveReplaceTokensAndTags isn't recursive anymore
@aschempp can you take a look at this?
@Toflar rewrote the core functionality. As far as I know we're still replacing unknown tokens?
I have just encountered this problem myself. @aschempp please fix it or bring back my fix:
https://github.com/codefog/contao-haste/commit/05879ee4fed58575574f03341243cd1378149d36
@binron can you update the haste to 4.14.3 and see if the issue still occurs?
The problem lies in the changed Contao core function "parseSimpleTokens".
The old version didn't care if the value exists or not:
The new one does:
In my case the value for ##payment_label## was not set and the new version of parseSimpleTokens does not replace the token if the key doesn't exists, so here is the infinite loop in StringUtil::recursiveReplaceTokensAndTags:
Changing this to the following solved the Problem: