Thank you for your reply.
As you can read in my previous post:
SiteGround Optimizer 7.2.8
PHP 8.1.3
FPM served by Apache
nginx proxy
The issue is that the apache_response_headers() (a PHP function) does not exist on my system and disabling themes or other plugins won’t solve that.
It would be better if you checked if the function exists
if (function_exists(‘apache_response_headers’)) {
//loop here
}