Class "\Drupal\config_pages\Commands\Drush\ConfigPagesCommands" does not exist

Created on 12 June 2024, 18 days ago
Updated 26 June 2024, 4 days ago

Problem/Motivation

The updates made to add Drush 12 support broke support for Drush 11, due to a missed update to the `drush.services.yml` file. When pulling the latest 2.x version of the module and running a drush command like `drush updb` results in the following fatal error:

`Class "\Drupal\config_pages\Commands\Drush\ConfigPagesCommands" does not exist `

This is due to the work done in issue #3417917, where the directory structure to the ConfigPagesCommand was changed to align with Drush 12 requirements, but the path was not updated in the `drush.services.yml` file that is used by Drush 11.

Steps to reproduce

1. Install the module in an environment running Drush 11.
2. Run a drush command.
3. Error about missing class file.

Proposed resolution

Update the `drush.services.yml` file to point to the updated path to the command class.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mikemiles86

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024