- Issue created by @mmlmitchell
This also gave my site the touch of death. I had to roll back to 2.0.8. I am experiencing the same errors.
On my site this happens when I try to create or edit a node which uses an entity reference on a field. The entity reference uses a contextual filter to check against the logged in user.
When this field with the entity reference is set to "checkboxes" or "select list" and a node with the field is created or edited, the error is produced. If I set the field to auto-complete, I am able to add or edit nodes, but the auto-complete does not work.
My errors:
1. Error: Call to a member function bundle() on null in Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection->stripAdminAndAnchorTagsFromResults() (line 289 of /var/www/html/website/web/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php).
2. Warning: Attempt to read property "_entity" on null in Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection->stripAdminAndAnchorTagsFromResults() (line 288 of /var/www/html/website/web/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php)
3. Warning: Undefined array key "#row" in Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection->stripAdminAndAnchorTagsFromResults() (line 288 of /var/www/html/website/web/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php)- π©πͺGermany jurgenhaas Gottmadingen
This sounds like related to π Views Post Render event may break entity reference views Active which is supposed to be fixed. Any chance that one of you could provide me with a reproducable example?
-
jurgenhaas β
committed 33349187 on 2.0.x
Issue #3493370 by mmlmitchell, jbuttler, jurgenhaas: Encountering error...
-
jurgenhaas β
committed 33349187 on 2.0.x
- π©πͺGermany jurgenhaas Gottmadingen
Oh wait, I've just checked the backport from the related issue and noticed, that this only worked in parts and "forgot" to remove one redundant line in the code.
Please give this patch a try and let us know if that fixes it for you.
- π©πͺGermany jurgenhaas Gottmadingen
We ran into this on other sites too and were able to confirm, that the patches fixes the issue. Published 2.0.10 containing that fix.