"Undefined property" warnings during sync

Created on 22 November 2022, about 2 years ago
Updated 30 October 2024, 2 months ago

Problem/Motivation

While running a manual sync I get loads of messages like the following in the dblogs:

Warning: Undefined property: stdClass::$product in Drupal\media_acquiadam\Service\AssetMetadataHelper->getMetadataFromAsset() (line 156 of /app/docroot/modules/contrib/media_acquiadam/src/Service/AssetMetadataHelper.php)

This is in version 2.0.6 where that line corresponds to

if (is_array($asset->metadata->fields->{$name}) && !empty($asset->metadata->fields->{$name})) {

Proposed resolution

Add a check to defend against and undefined property.

Remaining tasks

User interface changes

none

API changes

none

Data model changes

none

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

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