Problem/Motivation

The status report shows this error.

Notice: Undefined index: title in Drupal\system\SystemManager->Drupal\system\{closure}() (line 113 of core/modules/system/src/SystemManager.php).

This happens because config_tools_requirements() is setting $requirements['git']['description'] instead of $requirements['git_executable']['description'].

  if (class_exists(GitWrapper::class)) {
    try {
      $git_wrapper = new GitWrapper();
    }
    catch (GitException $gitException) {
      $requirements['git_executable']['title'] = t('Git executable');
      $requirements['git_executable']['value'] = t('Not found');
      $requirements['git']['description'] = t(
        "The %class class isn't able to find the Git executable, which is required from the %module module.",
        ['%class' => GitWrapper::class, '%module' => 'Configuration Tools']
      );
      $requirements['git_executable']['severity'] = REQUIREMENT_ERROR;

      return $requirements;
    }
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tim-diels created an issue. See original summary.

tim-diels’s picture

Assigned: tim-diels » Unassigned
Status: Active » Needs review

Provided merge request. Please review.

avpaderno’s picture

Title: Problem with install requirements » config_tools_requirements() sets the wrong array index
Issue summary: View changes

  • apaderno committed ecc9cf9 on 2.0.x authored by tim-diels
    Issue #3285062 by tim-diels: config_tools_requirements() sets the wrong...

  • apaderno committed 268f2fd on 8.x-1.x authored by tim-diels
    Issue #3285062 by tim-diels: config_tools_requirements() sets the wrong...
avpaderno’s picture

Status: Needs review » Fixed

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.