Variable used before and during loop.

Created on 1 June 2018, almost 7 years ago
Updated 17 February 2023, about 2 years ago

Hello,

I recently installed & enabled the module, but then I get the error "InvalidArgumentException: Field https://britishcolumbia.ca is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField()".

I eventually traced it to line 365 of linked_field.module:

$destination = $manager->getDestination($destination_type, $destination, $context);

The problem is that '$destination' becomes an URL on the second iteration when it should be the cached field name, (on line 348)

I tried fixing it but failed. Maybe someone with more knowledge of the module will be able to?

(Tried changing the parameter "$destination" to "$settings['destination']". Nope. Also tried remaining variable.)

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇨🇦Canada Nathan Tsai

Live updates comments and jobs are added and updated live.
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.71.5 2024