Problem/Motivation
No term selected. WSOD with error Error: Call to a member function bundle() on null
Steps to reproduce
Select no term WSOD
Proposed resolution
The same solution as on https://www.drupal.org/project/mixitup_views/issues/3040522
Line 445 OptionsShsWidget.php
if (!empty($term)) {
$vid = $term->bundle();
}
I am not enough programmer to build patch sorry.
Remaining tasks
User interface changes
API changes
Data model changes
Greetings, Martijn
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2022-01-12--3257269--shs-2.0.x-dev--parse-term-bundle-2.patch | 812 bytes | mr.valters |
Comments
Comment #2
tmaiochi commentedI'll work on this.
Comment #3
tmaiochi commentedSorry, but I can't reproduce this error. Can you give me more details, please?
Comment #4
summit commentedHi,
Sorry, I try to reproduce it myself.
I need functionality like:
https://www.drupal.org/project/shs/issues/2712115 for new terms and
https://www.drupal.org/project/shs/issues/3248983 for term lineage.
And I think some of this code was interfering.
Now I have implemented clean latest .dev and patch from https://www.drupal.org/project/shs/issues/3241169
Now it works without being able to add new terms on node edit and without the term lineage. No WSOD anymoe.
But not this functionality also..
May be a check like I propose easy and may be not, I am not able to judge about that.
greetings and thanks for your quick reply, Martijn
Comment #5
mr.valtersComment #6
mr.valtersComment #7
joel_osc commented+1 for RBTC - patch fixed this error which was triggered when adding a paragraph to a node with an SHS field on it. Thank-you @mr.valters!
Comment #8
stborchertThis has probably been fixed with #3241169: Error saving null/empty value after 2.0.0-rc1 update but I'm extending the checks here.
Comment #9
stborchert