Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am inserting one extra item to the "#items" key, altering the facets block "#pre render". The below fatal error occurs while doing so.
Error: Call to a member function getWidget() on null in facets_theme_suggestions_facets_result_item() (line 429 of modules/contrib/facets/facets.module).
Comment | File | Size | Author |
---|---|---|---|
#2 | facets-3027215-2.patch | 762 bytes | malaynayak |
Comments
Comment #2
malaynayak CreditAttribution: malaynayak as a volunteer and at TA Digital commentedIn facets_theme_suggestions_facets_result_item , adding an extra check fixes the issue.
Adding the patch for it.
Comment #3
malaynayak CreditAttribution: malaynayak as a volunteer and at TA Digital commentedComment #4
borisson_Sure, it seems like a good idea to be more defensive here.
Comment #6
borisson_Committed and pushed, thanks.