Views plugin exposed form throws a 'Theme not found' error when the view is rendered programmatically

Created on 6 March 2023, over 1 year ago
Updated 11 September 2023, 10 months ago

Problem/Motivation

When rendering a view with an exposed form programmatically, no #theme value is set when the system attempts to render a view with an exposed form. In this case, the views data is rendered out to csv.

Steps to reproduce

Render a view with an exposed form programmatically and note "Theme hook not found" error in dblog.

Proposed resolution

Slightly alter the code in views_plugin_exposed_form.inc to set the form's '#theme' value to an array containing a blank key if it is not present to prevent the generation of the "Theme hook not found" error.

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Miscellaneous

Created by

πŸ‡¨πŸ‡¦Canada wilco

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