Issues with preference center page

Your software
My Mautic version is: v5.2.5
My PHP version is: 8.1.32
My Database type and version is: 10.11.11-MariaDB-0ubuntu0.24.04.2-log

Your problem
My problem is: We have upgraded our staging server from version 4.4.1 to 5.2.5 and are having the following problems with the Preference Center page:
{successmessage} token is always displayed, and not only when i have clicked Save.

These errors are showing in the log:

Steps I have tried to fix the problem:

I also noticed this when testing some pull requests. Looks like a confirmed bug. Would you mind logging it at GitHub · Where software is built? A screenshot goes a long way.

Just noticed the same issue in version 6.0.5. Created an issue: Preference center: the successmessage token is always displayed - not only after submitting the form · Issue #15496 · mautic/mautic · GitHub