Okay, this is getting more and more interesting. When I get an error message that I caused myself, I get the error page in production mode. When I then switch it to development mode, I do see the relevant error log. When I then solve this problem, it shows that database error again. If I then switch it back to production mode, it runs again.
How is this possible? Haha
<?php echo "Programming and perfectionism sucks sometimes..."; ?>