# Discourse layouts plugin is broken

**URL:** <https://meta.discourse.org/t/discourse-layouts-plugin-is-broken/75722>\
**Category:** Product Support\
**Created:** [9 Dicembre 2017, 5:16am UTC](https://meta.discourse.org/t/discourse-layouts-plugin-is-broken/75722 "2017-12-09T05:16:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [10 Dicembre 2017, 3:44am UTC](https://meta.discourse.org/t/discourse-layouts-plugin-is-broken/75722/3 "2017-12-10T03:44:57Z")

</div>

Hey there 🙂 The layouts plugin isn’t broken. You’ll get this error if you’re trying to add a widget and you don’t pass the right number arguments to the `add_widget` method.

What widget(s) / versions of widgets are you trying to use with the layouts plugin? (maybe just paste the list of plugins you’re using here)

Additionally, I’ve made a small change to the layouts plugin to prevent the passing of incorrect arguments from throwing an exception like this.

---

_[View the full topic](https://meta.discourse.org/t/discourse-layouts-plugin-is-broken/75722)._
