Error "Notice: Undefined property: stdClass::$field_..." on update from 2.0-alpha4 to beta 2

Created on 28 September 2020, about 4 years ago
Updated 17 October 2023, about 1 year ago

Problem/Motivation

We updated from 2.0-alpha4 to 2.0-beta2. The views reference fields are on Commerce product entities. We are now getting a lot of PHP notices in the Drupal error log with information such as the following:
Message Notice: Undefined property: stdClass::$field_display_photos__title in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables() (line 1288 of /home/shedsandstuff/public_html/lanc/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php)

Steps to reproduce

If a views reference field is on Commerce product entity, and there is existing data in the field, update from 2.0-alpha4 to 2.0-beta2. See the Drupal log.

Proposed resolution

Could be related to https://www.drupal.org/project/viewsreference/issues/2824292 β†’ . Does the update script need to include product entities?

Remaining tasks

If someone would know how to create a patch or script that would fix the error messages, we would be much obliged.

πŸ› Bug report
Status

Closed: duplicate

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States adrian83

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