Warning: Undefined variable $target_base_table in views_field_default_views_data() (line 436 of core/modules/views/views.views.inc).

Created on 21 May 2024, 4 months ago
Updated 6 June 2024, 3 months ago

Problem/Motivation

Warning: Undefined variable $target_base_table in views_field_default_views_data() (line 436 of core/modules/views/views.views.inc).

Appears after each drush cr

Steps to reproduce

drush cr
load a page of the website

Proposed resolution

Initialiaze $target_base_table and $pseudo_field_name before line 436 of core/modules/views/views.views.inc

    if ($target_base_table && $field_storage->isTranslatable()) {
      $data[$target_base_table][$pseudo_field_name]['relationship']['join_extra'][] = [
        'field' => 'langcode',
        'left_field' => 'langcode',
      ];
    }

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ’¬ Support request
Status

Closed: works as designed

Version

10.2 ✨

Component
ViewsΒ  β†’

Last updated about 11 hours ago

Created by

πŸ‡§πŸ‡ͺBelgium charlus Bruxelles

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

Comments & Activities

Production build 0.71.5 2024