• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

As designed Template widget_def_options... error

Affected version
2.0 RC 3

Snog

Well-known member
#1
If you have a widget that does not require any options and you don't create the admin options template, you get this error:
Code:
Template errors
[LIST]
[*]Template admin:widget_def_options_snog_data: Template admin:widget_def_options_snog_data is unknown (src/XF/Template/Templater.php:564)
[/LIST]
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
#2
You don’t need to create the template. You just override the method that renders the template. See the VisitorPanel widget for an example.