Error on drush locale:check PHP Fatal error: Cannot redeclare locale_translation_batch_version_check() previously declared

Created on 5 January 2024, about 1 year ago

Problem/Motivation

Since 10.2.1 update (updated from 10.1.6), drush locale:check fails with error :
PHP Fatal error: Cannot redeclare locale_translation_batch_version_check() (previously declared in /var/www/html/web/core/modules/locale/locale.batch.inc:40) in /var/www/html/web/core/modules/locale/locale.batch.inc on line 97

The function is indeed declared twice since
https://git.drupalcode.org/project/drupal/-/merge_requests/5616/diffs
from this issue https://www.drupal.org/project/drupal/issues/2575945 πŸ› A new module version is not recognized by interface translation update. Fixed

Steps to reproduce

Update to 1.0.2.1 and run drush locale:check

Proposed resolution

Refactor locale.batch.inc

πŸ› Bug report
Status

Closed: works as designed

Version

10.2 ✨

Component
LocaleΒ  β†’

Last updated 4 days ago

Created by

πŸ‡«πŸ‡·France ericdsd France

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

Comments & Activities

  • Issue created by @ericdsd
  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡«πŸ‡·France ericdsd France

    Issue was indeed caused by previous patch not properly removed. Closing

Production build 0.71.5 2024