As designed Template widget_def_options... error

Affected version
2.0 RC 3


Well-known member
If you have a widget that does not require any options and you don't create the admin options template, you get this error:
Template errors
[*]Template admin:widget_def_options_snog_data: Template admin:widget_def_options_snog_data is unknown (src/XF/Template/Templater.php:564)
Since the widget doesn't need any options except the default ones, it seems to me that the error should not be displayed. Otherwise we're forced to create an empty template to suppress the error.

Chris D

XenForo developer
Staff member
You don’t need to create the template. You just override the method that renders the template. See the VisitorPanel widget for an example.