Description
In Drupal 11.2.2, visiting /admin/reports/status
results in a fatal error due to a missing include in the system_requirements()
function within core/modules/system/system.module
.
The function attempts to call drupal_verify_install_file()
but does not include core/includes/install.inc
, where that function is defined. This results in a fatal error in normal runtime (i.e., outside of install context).
Steps to reproduce
- Install a fresh Drupal 11.2.2 site.
- Log in as an administrator.
- Visit
/admin/reports/status
.
Expected behavior
The status report page loads normally and displays environment and system information.
Actual behavior
A fatal error occurs and the page is inaccessible. Example error:
Error: Call to undefined function drupal_verify_install_file() in Drupal\system\system_requirements()
This prevents the site administrator from accessing essential system status information.
Cause
The function system_requirements()
in system.module
calls drupal_verify_install_file()
without first including core/includes/install.inc
, which defines that function.
Suggested fix
Add the following line at the start of system_requirements()
:
require_once DRUPAL_ROOT . '/core/includes/install.inc';
This resolves the error and restores expected behavior.
Workaround
- Manually add the
require_once
line as shown above in your site's core/modules/system/system.module
file.
- Alternatively, apply the fix using a Composer patch in your project.