ListItemProcessor PHP errors D9

Created on 18 April 2022, about 2 years ago
Updated 13 April 2024, 3 months ago

Problem/Motivation

When upgrading my page from D8 to D9, I reached below php errors:

Error: Call to a member function getDatasourceId() on null in Drupal\facets\Plugin\facets\processor\ListItemProcessor->build() (line 108 of /var/www/html/www/modules/contrib/facets/src/Plugin/facets/processor/ListItemProcessor.php)

Error: Call to a member function getDatasource() on null in Drupal\facets\Plugin\facets\processor\ListItemProcessor->build() (line 111 of /var/www/html/www/modules/contrib/facets/src/Plugin/facets/processor/ListItemProcessor.php)

Error: Call to a member function getDataDefinition() on null in Drupal\facets\Plugin\facets\processor\ListItemProcessor->build() (line 131 of /var/www/html/www/modules/contrib/facets/src/Plugin/facets/processor/ListItemProcessor.php)

It seem this problem caused by lacking field data.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡»πŸ‡³Vietnam hieu.pm

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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