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

2.3.1 - Bad widget class: NoWidgets


Reply

2 Posts   1149 Views

Avatar
PhilG

5 June 2009 at 7:19am (Last edited: 5 June 2009 8:08am), Community Member, 2 Posts

I am attempting to look at a few downloaded widgets - HTML, Pay Pal donation for example. I do the dev/build . .but when I drag a particular widget over to add it to the page, I notice a bad widget class name given error where the widget was located in the list. In looking at my logs I see this error:

Warning at sapphire/widgets/Widget.php line 116: Bad widget class: NoWidgets

Can someone tell me what I am doing? The twitter widgets with the twitter module work fine . but no widget I download from the site seems to work.

Also . .I am trying to enable widgets in a custom page type ..not in blog module.

Avatar
Sean

5 June 2009 at 4:34pm Forum Moderator, 921 Posts

This is a bug. If there's no used widgets, it tries to call "NoWidgets" from the javascript.

It's been fixed for 2.3, here: http://open.silverstripe.org/changeset/78496