After my hosting upgraded to PHP7, I am getting this error in my code: “Unknown output buffering mode”.
I am not trying to set any output buffering, so I don’t understand how to fix this?
Are there some env. settings I should configure specifically for PHP7?
<b>Fatal error</b>: Uncaught InvalidArgumentException: Unknown output buffering mode in /var/www/michelsen.dk/regexcrossword/api/vendor/slim/slim/Slim/Route.php:185
Stack trace:
#0 /var/www/michelsen.dk/regexcrossword/api/vendor/slim/slim/Slim/App.php(248): Slim\Route->setOutputBuffering(NULL)
#1 /var/www/michelsen.dk/regexcrossword/api/vendor/slim/slim/Slim/App.php(146): Slim\App->map(Array, '/{achievementId...', Object(Closure))
#2 /var/www/michelsen.dk/regexcrossword/api/handlers/achievements.php(10): Slim\App->get('/{achievementId...', Object(Closure))
#3 /var/www/michelsen.dk/regexcrossword/api/vendor/slim/slim/Slim/RouteGroup.php(45): Closure->{closure}()
#4 /var/www/michelsen.dk/regexcrossword/api/vendor/slim/slim/Slim/App.php(271): Slim\RouteGroup->__invoke(Object(Slim\App))
#5 /var/www/michelsen.dk/regexcrossword/api/api.php(51): Slim\App->group('/achievements', Object(Closure))
#6 {main}
thrown in
<b>/var/www/michelsen.dk/regexcrossword/api/vendor/slim/slim/Slim/Route.php</b> on line
<b>185</b>