- Issue created by @robpowell
- Merge request !30Issue #3357451: There is no display available. Please select another view or change the field settings. → (Merged) created by robpowell
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - Status changed to Needs review
over 1 year ago 1:37pm 1 May 2023 - 🇺🇸United States hyperlogos
I am getting this error no matter what settings when I use a view reference in a paragraph.
View references work fine in a custom content, without paragraphs.
- 🇺🇸United States jeff.hartman
Same result as @hyperlogos. No displays shown when used within a paragraph. Version 8.x-2.0-beta4.
- 🇺🇸United States m-simmons
I get the same as #7 and #8. Version 8.x-2.0-beta7.
- 🇺🇸United States daletrexel Minnesota, USA
Based on the error message, this is due to a regression (re)introduced in 8.x-2.0-beta7, where unserialize() is being called without first checking for a null value (which is no longer allowed as of PHP 8.1).
This had been fixed in beta5 (released August 2023), but changes in beta7 brought it back. This tracks with comments here: the issue existed prior to August 2023, jeff.hartman found that upgrading from beta4 to beta6 (skipping over beta5 where it was first fixed) solved the problem, then mikesimmons observed it was back with beta7.
I've proposed a solution in 🐛 unserialize() of NULL deprecation returns to ViewsReferenceFieldFormatter Needs review . This specifically addresses the null value being passed to unserialize() in line 97 of ViewsReferenceItem.php. Please give the patch in that issue a try and report back if it solves your problem here!
- 🇺🇸United States m-simmons
Thanks @DaleTrexel. Unfortunately, patch 3423648-4 🐛 unserialize() of NULL deprecation returns to ViewsReferenceFieldFormatter Needs review did not resolve the issue for me. Version 8.x-2.0-beta7.
- 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
For me its not working for two view only how we can reslove this for those two views its showing the error like "There is no display available. Please select another view or change the field settings." any solution ???
- 🇺🇸United States rraney
I think I'm going to piggyback on this issue because this is the exact error message I'm getting.
I'm using entity reference for a field in a paragraph. The paragraph only has one field - this one. It's meant to pull down Views only but I noticed I can't select View from the list in the field.
When I try to add a View in the paragraph layout editor, it sometimes produces this error, sometimes not. I can successfully load some Views and not others. I can't figure out which ones it won't allow except to say it might be all "Content" based views.
I really need to load a View block into my paragraph. I'm going to try the aforementioned patch.
- 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
yes right it is not working for autocomplete widget only its works fine in select list ..
- Status changed to RTBC
6 months ago 9:26pm 11 June 2024 - 🇬🇧United Kingdom scott_euser
Making display types required as per the MR makes sense; you must select at least one of these:
Marking this as RTBC.
For #13 it sounds like a separate issue, might be worth opening with steps to reproduce from a clean install including the settings you used.
- First commit to issue fork.
-
seanB →
committed c33a1669 on 8.x-2.x authored by
robpowell →
Issue #3357451: There is no display available. Please select another...
-
seanB →
committed c33a1669 on 8.x-2.x authored by
robpowell →
- Status changed to Fixed
6 months ago 8:18am 14 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.