Skip to end of search_autocomplete_autocomplete() when views_get_view()

Created on 6 November 2018, over 5 years ago
Updated 3 July 2023, 12 months 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.69.0 2024