1.3 breaks custom widgets
-
I have been using custom widgets I created as per https://siteorigin.com/docs/widgets-bundle/getting-started/creating-a-widget/.
The update has caused the following error:
Class 'SiteOrigin_Widget_Field_' not found in <b>...../wp-content/plugins/so-widgets-bundle/base/inc/fields/factory.class.php</b> on line <b>26</b><br />Is there some update required to our custom widgets?
-
Hi Stueynet
I think I can see what’s happening there. I’ll make sure we add a check for that for the next update.
From the looks of things I’d guess that one of the fields in your form array doesn’t have a
typeattribute. I think the Widgets Bundle defaults to having a type of text, so can you just add this as the attribute to fields that don’t have it.Thanks Greg. I looked through and all fields seem to have type. I have pushed up the code to my github if you want to have a look:
We’re taking a look at this now. We’ll get back to you shortly.
Hi Stueynet
In your Icon Box widget you’re modifying the form here: https://github.com/stueynet/so-custom-widgets/blob/master/widgets/icon-box-widget/icon-box-widget.php#L92
That line adds a
container_shapefield without a type. We will add a check in future to prevent attempting to instantiate field classes without types, but for now you can either comment out that function or make sure the form contains acontainer_shapefield with a type, as required.Hope that helps!
Ahhh sorry thought you meant type in each field. Thanks for the fix! Works now with 1.3.
The topic ‘1.3 breaks custom widgets’ is closed to new replies.