Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Widgets

Discuss SilverStripe Widgets.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Fatal error: Class 'FieldSet' not found translation and weather widgets


Reply

2 Posts   844 Views

Avatar
superk

23 November 2013 at 11:07pm (Last edited: 23 November 2013 11:20pm), Community Member, 2 Posts

Hi

I wanted to create a subclass of the weather widget. But I can't seem to be able to install it properly

My distribution is SilverStripe 3.1.2
And using the Simpli theme

I installed the distribution using composer, same did with the widgets and the translator modules.
The GoogleWeather widget was installed manually

When I go to the Widgets tab on the home page (admin area) I click on the '+ symbol to add the widget, I get the following error

Fatal error: Class 'FieldSet' not found in /www/fire.weather-it-is.com/widgets_GoogleWeather/GoogleWeatherWidget.php on line 83

Same goes when I try to add the language chooser

Fatal error: Class 'FieldSet' not found in /www/fire.weather-it-is.com/widgets_languagechooser/LanguageChooser.php on line 11

I can locate the FieldSet and FieldList functions inside

I appreciate any help

Avatar
Willr

28 November 2013 at 10:49pm Forum Moderator, 5511 Posts

FieldSet doesn't exist in 3.1, it has been replaced by FieldList. Those widgets probably haven't been updated for 3.1 support.