So I found the problem.
First of all I took the default template from the main branch tho check if the custom template is causing the problems. This is a mistake I’m running 1.18.3 and that is not the main branch. And the default template from the main branch did not work and give a 500 error to.
Which messed up my trouble shooting process thinking that its not the template because its still giving the same error. Not realizing its giving the same error because of the same reason again a faulty template, another mistake.
So after finding out I got the wrong default template I got the right default in place an hey my problems are over.
Next step is where is the mistake in my custom template.
Well that is the weird thing. Its in the section I commented out.
Apparently something changed around the way or interpretation of commented out sections.
Is anybody aware of this? What changed? Or is it a bug?
Yes I do use a custom landing page and that was the problem. I posted an update but it got marked as spam an now a moderator has to approve the post. → aah its has been approved. See the post from feb 3
In the custom template was a section commented out. Turns out it failed on something in the commented section which is kinda weird.