Your software
My Mautic version is: 5.0.4
My PHP version is: 8.1.27
My Database type and version is: 10.6.16-MariaDB-0ubuntu0.22.04.1
Your problem
My problem is:
500 Internal Server Error, reported as this in the PHP error log when I try to access the preference center by clicking the {unsubscribe_text} link in an email.
These errors are showing in the log:
PHP Deprecated: str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/html/app/bundles/PageBundle/EventListener/BuilderSubscriber.php on line 339
As an aside: Earlier, I added a feedback form to the preference center which resulted in the page using the same page template twice. That somehow led to the preference page and the form both being wrapped with the custom page template that I’ve made and which is branded. So I assigned the Blank theme to the preference center landing page. That fixed it.
Error reporting is set to the default now, as is evident in Mautic: