Problem/Motivation

When saving a node we get the following notice:

Warning: Undefined array key 1 in Drupal\at_auto_fix_entity_references\EventSubscriber\AutoFixNodeReferences->replaceLinkFieldValues() (line 187 of modules/contrib/asymmetric_translations/modules/at_auto_fix_entity_references/src/EventSubscriber/AutoFixNodeReferences.php)

Steps to reproduce

Save a node with at_auto_fix_entity_references module enabled

Proposed resolution

Investigate and fix

Remaining tasks

  • Investigate. The problem is weird, because just before this line we check whether the regular expression matches. If not, it should not get to this line
  • Fix the issue; a quick-fix might be to just check if $matches[1] is set, but that may still introduce bugs in the future. The best fix will be that it doesn't even get to this line.

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

  • 1.x Comparechanges, plain diff MR !6

Comments

Paul Dudink created an issue. See original summary.

  • Paul Dudink committed ff787b62 on 1.x
    Issue #3345855 by Paul Dudink: Warning: Undefined array key 1 in line...
paul dudink’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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