drupal_verify_install_file() causes fatal error on /admin/reports/status due to missing include in system_requirements() (drupal 11.2.2))

Created on 28 June 2025, 14 days ago

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

  1. Install a fresh Drupal 11.2.2 site.
  2. Log in as an administrator.
  3. 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.
🐛 Bug report
Status

Active

Version

11.2 🔥

Component

system.module

Created by

🇳🇱Netherlands sproets

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024