Hi Lars,
I know this is an old thread but did you ever figure out what was wrong? I'm having an identical issue on my Centos 6.8 server with Onyx. I'm assuming a corrupt php.ini or something but nothing I try seems to work. Strangely, it only affects some sites and only happens when using PHP-FPM.