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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Widgets /

Discuss SilverStripe Widgets.

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

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


Go to End


2 Posts   3892 Views

Avatar
superk

Community Member, 2 Posts

23 November 2013 at 11:07pm

Edited: 23/11/2013 11:20pm

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

Forum Moderator, 5523 Posts

28 November 2013 at 10:49pm

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