Warning: Undefined array key "#langcode"

Created on 19 September 2023, over 1 year ago
Updated 23 September 2023, over 1 year ago

Problem/Motivation

Warning: Undefined array key "#langcode" in Drupal\blazy\Field\BlazyEntityVanillaBase->withOverride() (line 289 of modules/contrib/blazy/src/Field/BlazyEntityVanillaBase.php).

Steps to reproduce

Proposed resolution

Key langcode is not being access by reference

💬 Support request
Status

Fixed

Version

2.17

Component

Miscellaneous

Created by

🇪🇸Spain jcarrasco

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

Comments & Activities

  • Issue created by @jcarrasco
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update over 1 year ago
    50 pass
  • @jcarrasco opened merge request.
  • Status changed to Needs review over 1 year ago
  • Issue was unassigned.
  • Status changed to Postponed: needs info over 1 year ago
  • 🇮🇩Indonesia gausarts

    Thank you.

    #langcode is always defined for the entire ecosystem here:
    https://git.drupalcode.org/project/blazy/-/blob/8.x-2.17/src/Plugin/Fiel...

    Please paste the entire warning message so I can see what is calling it?

    Also may I know Blazy sub-modules and their versions you use if any?

    They must be the latest release with the same date. I intentionally release them in the same date to avoid potential issues like this.

    If you are overriding that method, be sure to update.
    If using obsolete modules like Lory, etc., then they were no longer supported.

    Regarding your patch, I am not sure your proposed solution would actually address the OP issue. References would not fix undefined key warnings.

  • Status changed to Fixed over 1 year ago
  • 🇮🇩Indonesia gausarts

    Housekeeping for 2.18.

    Feel free to re-open if still an issue.
    Thank you.

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

Production build 0.71.5 2024