Skip to end of search_autocomplete_autocomplete() when views_get_view()

Created on 6 November 2018, about 6 years ago
Updated 3 July 2023, over 1 year ago

In search_autocomplete_autocomplete(), sometimes views_get_view() returns NULL, which leads to the error "PHP Fatal error: Call to a member function set_display() on null". This can be fixed by moving the method_exists() conditional to right after the call to views_get_view().

(Why is views_get_view() called twice with the same parameter?)

🐛 Bug report
Status

Closed: outdated

Version

4.0

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024