Overridden views templates are very out of date causing PHP deprecations

Created on 31 December 2023, 11 months ago

Problem/Motivation

Adding this as a major bug because it's hard to track down.

With aristotle installed, I see errors on page with a view rendered like:

Deprecated function: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\views\Plugin\views\style\StylePluginBase->tokenizeValue() (line 238 of

This is because the overridden views template in aristotle is very out of date.

Steps to reproduce

Proposed resolution

Update the override of the base template with the one from stable 9.

Remaining tasks

Probably all of the views template overrides should be updated to be based on the latest versions of those templates in Drupal 10. However a more sustainable way to handle this would be to use preprocess or the default views config itself to add any necessary classes, or to provide custom style plugins if the changes are more significant.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

🇬🇧United Kingdom catch

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024