Warnings when importing translations with drush locale-update

Created on 10 November 2022, over 1 year ago
Updated 18 February 2023, over 1 year ago

Problem/Motivation

I want to import PO files from a custom module. Preferably only that 1 project, but it looks like the --projects drush option was removed from drush locale-check. Anyways, I get the following warnings multiple times, but varying numbers depending on which language the site is:

[warning] Attempt to read property "uri" on bool locale.batch.inc:196

The custom module translations do seem to import correctly.

Steps to reproduce

1. drush locale-check
2. drush locale-update

Proposed resolution

Add a check like isset($file->uri) to locale.batch.inc:196

Remaining tasks

Test out patch

πŸ› Bug report
Status

Needs work

Version

9.5

Component
LocaleΒ  β†’

Last updated 3 days ago

Created by

πŸ‡¨πŸ‡¦Canada jlongbottom

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024