Title: Warning with 1.3
Last modified: August 30, 2016

---

# Warning with 1.3

 *  Resolved [stueynet](https://wordpress.org/support/users/stueynet/)
 * (@stueynet)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-with-13/)
 * Sorry guys found another issue with custom widgets. Getting this warning:
 * Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/so-widgets-
   bundle/base/siteorigin-widget.class.php on line 255
 * The custom widget that page is using is here and it works fine but adds the warning.
   
   [https://github.com/stueynet/so-custom-widgets/blob/master/widgets/simple-button-widget/simple-button-widget.php](https://github.com/stueynet/so-custom-widgets/blob/master/widgets/simple-button-widget/simple-button-widget.php)
 * [https://wordpress.org/plugins/so-widgets-bundle/](https://wordpress.org/plugins/so-widgets-bundle/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Braam Genis](https://wordpress.org/support/users/braam-genis/)
 * (@braam-genis)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-with-13/#post-6304746)
 * Hi Stueynet
 * In your constructor for SimpleButtonWidget you’re passing through the form options
   array as the 3rd argument, where it should be the 4th argument, as indicated 
   [here](https://siteorigin.com/docs/widgets-bundle/getting-started/creating-a-widget/)
   under the _Widget class constructor_ section.
 * The warning doesn’t occur if you pass an additional array as the 3rd argument.
 *  Thread Starter [stueynet](https://wordpress.org/support/users/stueynet/)
 * (@stueynet)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-with-13/#post-6304758)
 * Ah thanks Braam. All good now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning with 1.3’ is closed to new replies.

 * ![](https://ps.w.org/so-widgets-bundle/assets/icon.svg?rev=2556862)
 * [SiteOrigin Widgets Bundle](https://wordpress.org/plugins/so-widgets-bundle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/so-widgets-bundle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/so-widgets-bundle/)
 * [Active Topics](https://wordpress.org/support/plugin/so-widgets-bundle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/so-widgets-bundle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/so-widgets-bundle/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [stueynet](https://wordpress.org/support/users/stueynet/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/warning-with-13/#post-6304758)
 * Status: resolved