Unsupported operand types

Created on 15 February 2024, 4 months ago
Updated 1 May 2024, about 2 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 Mandsaur

    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 about 2 months ago
  • 🇬🇧United Kingdom danharper

    @himanshu_jhaloya, this is exactly what it was. Thanks

Production build 0.69.0 2024