# Failed upgrade: TypeError: this.states.forEach is not a function

**URL:** https://meta.discourse.org/t/failed-upgrade-typeerror-this-states-foreach-is-not-a-function/102869
**Category:** Support
**Created:** [11월 27, 2018, 9:07오전 UTC](https://meta.discourse.org/t/failed-upgrade-typeerror-this-states-foreach-is-not-a-function/102869 "2018-11-27T09:07:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [11월 27, 2018, 9:07오전 UTC](https://meta.discourse.org/t/failed-upgrade-typeerror-this-states-foreach-is-not-a-function/102869/1 "2018-11-27T09:07:57Z")

</div>

Hey guys, i just did a bit of mentenance of my discourse instance and things went south. Badly.

What i did:

```plaintext
git pull
./launcher rebuild app

```

The rebuild process completed without any errors, but when i try to access the web version, it crashes right after the header is rendered:

 ![](https://global.discourse-cdn.com/meta/original/3X/5/e/5e3498adc2483eedc6563892ddac0508c1594ee4.jpeg)

```plaintext
_ember_jquery-07f49b58317ea9292d939348ec0091eb50a9d8aaabd9e86cc074ef5f049918aa.js:29446 TypeError: this.states.forEach is not a function

```

I’ve disabled all plugins and all customisation but without any success.

This is the URL: [https://devforum.ro/](https://devforum.ro/)

* * *

Update: i’ve noticed that the problem is only present on home page. Topics are visible, Messages are working, categories are working.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [11월 27, 2018, 3:15오후 UTC](https://meta.discourse.org/t/failed-upgrade-typeerror-this-states-foreach-is-not-a-function/102869/3 "2018-11-27T15:15:43Z")

</div>

This should be fixed as of this commit: [FIX: better fix for #ca84c06 (#6684) · discourse/discourse@7f089f0 · GitHub](https://github.com/discourse/discourse/commit/7f089f07a773c2d6dd26ed000ff0123318c37b0f)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [11월 27, 2018, 5:15오후 UTC](https://meta.discourse.org/t/failed-upgrade-typeerror-this-states-foreach-is-not-a-function/102869/4 "2018-11-27T17:15:07Z")

</div>


