Notice: Trying to access array offset on value of type null in entityreference_field_views_data_views_data_alter()

Created on 30 December 2021, over 2 years ago
Updated 14 April 2023, about 1 year ago

Problem/Motivation

After the cache rebuilding the next errors are appeared (the same errors for lines 77, 78):

Notice: Trying to access array offset on value of type null in entityreference_field_views_data_views_data_alter() (line 61 of ...entityreference/views/entityreference.views.inc).

This is similar to the views module issue: https://www.drupal.org/project/views/issues/3153312 πŸ› PHP 7.4 warnings with disabled Comment module Fixed

Proposed resolution

We should take into consideration the fix for views module. Since views module cares about logging the errors, we should just add additional condition (similar way as views adds).

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine alan-ps

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.69.0 2024