Unsupported operand types

Created on 15 February 2024, 10 months ago
Updated 1 May 2024, 8 months ago

I've recently update to Drupal 10.2.2 and now Using the on/off field on a view I get the following issue when filtering.

TypeError: Unsupported operand types: array + null in Drupal\views\Plugin\views\field\FieldPluginBase->advancedRender() (line 1223 of /app/web/core/modules/views/src/Plugin/views/field/FieldPluginBase.php).

I removed the global on/off field from the view and it started to work again.

I'm using php 8.1

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom danharper

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

Comments & Activities

  • Issue created by @danharper
  • 🇮🇳India himanshu_jhaloya Indore

    Hi @danharper
    It can be a broken field after updating the Drupal
    go to Admin>Structure>Views>Content. There was a field "Missing-broken links" that didn't appear in the Content Views of the other sites of the site

    By removing that field everything started to work fine:

  • Status changed to Closed: works as designed 8 months ago
  • 🇬🇧United Kingdom danharper

    @himanshu_jhaloya, this is exactly what it was. Thanks

Production build 0.71.5 2024