Logger Service not working with Drush 10

Created on 14 August 2024, 4 months ago
Updated 15 August 2024, 4 months ago

Problem/Motivation

Call to a member function warning() on null in Drupal\migrate_tools\Drush\Commands\MigrateToolsCommands->resetStatus() (line 690 of modules/contrib/migrate_tools/src/Drush/Commands/MigrateToolsCommands.php)
When I try to run the custom drush command which has the method $this->migrateToolsCommands->resetStatus('guide');
causing this issue. Although I checked the migrate_tools module that seems to be have the correct $this->logger->warning($migration_id)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

6.0

Component

Code

Created by

🇮🇳India Dinesh18

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

Merge Requests

Comments & Activities

  • Issue created by @Dinesh18
  • 🇮🇳India Dinesh18

    dinesh18 changed the visibility of the branch 3467968-logger-service-not to hidden.

  • Merge request !71Added fix to support Drush 10 → (Open) created by Dinesh18
  • Pipeline finished with Failed
    4 months ago
    Total: 206s
    #253429
  • Pipeline finished with Failed
    4 months ago
    Total: 338s
    #253432
  • Pipeline finished with Failed
    4 months ago
    Total: 377s
    #253491
  • Status changed to Postponed: needs info 4 months ago
  • heddn Nicaragua

    Drush is no longer supported for 2 years. Can you upgrade to a newer drush? The MR here makes test fail on more modern versions of Drush, so I think the proposed solution is probably a non-starter.

  • 🇮🇳India Dinesh18

    We cannot update Drush, as we have lots of other custom code still dependent on Drush 10. It will be lot of re-work in that case.

  • Pipeline finished with Failed
    4 months ago
    Total: 401s
    #254580
Production build 0.71.5 2024