Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
2 Nov 2023 at 14:03 UTC
Updated:
3 Dec 2025 at 17:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alen simonyan commentedComment #3
alen simonyan commentedHere is the patch for this.
Comment #5
lendudeThanks for reporting this.
Do you have some steps to reproduce this on a clean Drupal install? Usually this is a symptom of a problem further up and just adding some checks is just hiding the real problem
Comment #6
alen simonyan commentedHi @Lendude,
I diddn't manage to reproduce this on fresh install yet.
Comment #7
seutje commentedI also ran into this issue. The MR linked above fixed it for 9.x, but failed to apply when I upgraded to 10.x, so I rerolled it, but I changed it to fall back on
$this->options['content']Unfortunately, I have no clue what the cause is, so I cannot provide any more information... I have a strong suspicion it's being caused by a control module, as I only experience this issue with 1 specific project.
Comment #9
lance lancelot commentedI encountered the same error and implemented a temporary fix, which needs review. The issue arises because $this->options['content'] is expected to be an array but can sometimes be a string.
Here’s the patch I applied to web/core/modules/views/src/Plugin/views/area/Text.php:
Comment #10
lendude@lance lancelot Have you been able to pin down when or why this would be the case? We still need steps to reproduce this on a fresh Drupal install since as it stands currently, the error might just be the correct way to handle this because there is something wrong upstream.
Comment #11
lance lancelot commentedThe error occurred after upgrading from Drupal 9 to Drupal 10. To investigate, I exported the configuration files and searched for occurrences of 'content:' strings.
For example, could the following configuration in views.view.comments_recent.yml be causing the error?
I’m not entirely sure, but could the content: 'No comments available.' string format be causing the issue? Should it now be structured as:
Is this new format required in Drupal 10, and if so, was this change documented? I’d appreciate any clarification or guidance regarding this.
Comment #12
alxn commentedI just encountered this issue with Drupal 10.3.10 and Workbench 1.6Comment #13
smustgrave commentedBefore closing out anyone able to add concrete steps?
Comment #14
marieascomedia commentedGot the same problem on a watchdog view in a drupal 10 upgraded from 9.
After exporting configuration from that view and compared with one coming from a new drupal 10, I found this difference :
from the old
from the new.
Re-importing the view config with only this difference make it works.
Comment #15
4kant commentedI had this issue last time I updated core from 9 to 10.3 and so far solved it via #7.
Today it popped up again when updating to 10.5.6.
After reading comments from #11 and #14 I looked into the configuration of the watchdog-view (/admin/structure/views/view/watchdog).
In the "No results behavior" area it said "Array (Array)".
All I had to do is replace that entry with a new text area containing the desired text.
So no patch necessary anymore.
Don´t know whether I found the cause of error for everyone. But maybe it helps to find it.