I'm using https://github.com/drupal-composer/drupal-project to install Drupal 8. The only thing I've changed in the
composer.json is to freeze Drupal core version to 8.8.1
After Drupal installation I get WSOD and see the following errors in PHP logs:
Uncaught PHP Exception InvalidArgumentException: "Class "\Drupal\system\Controller\Http4xxController" does not exist." at /var/www/html/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php line 24 Uncaught PHP Exception InvalidArgumentException: "No check has been registered for access_check.permission" at /var/www/html/web/core/lib/Drupal/Core/Access/CheckProvider.php line 97
Happens on PHP 7.2 and 7.3
UPD: this issue does not happen with Drupal 8.8.0
UPD2: This issue happens regardless of whether you freeze drupal core or not. Also happens with the (now) official composer template drupal/recommended-project. This issue happens only during installation from web, if you install via CLI it doesn't happen. There's an issue now in the official Drupal tracker https://www.drupal.org/project/drupal/issues/3103529. P.S.: I don't know why someone decided to close this issue as not relevant to Drupal. This is the Drupal core issue. I tried to reopen a couple of times but my request was ignored.