# Rebuilding caused a JavaScript error on load

**URL:** https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975
**Category:** Support
**Created:** [June 17, 2016, 9:00pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975 "2016-06-17T21:00:34Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [June 17, 2016, 9:00pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/1 "2016-06-17T21:00:34Z")

</div>

After rebuilding my site a few minutes ago, Discourse no longer loads.

I get this error in the JavaScript console:

 ![](https://global.discourse-cdn.com/meta/original/3X/3/f/3faf5ab865b52622d4e49a8562301519f247d14c.png)

I’m down to these plugins, and the error is still there:

```
      - git clone https://github.com/discourse/docker_manager.git
      - git clone https://github.com/discourse/discourse-spoiler-alert.git
      - git clone https://github.com/discourse/discourse-data-explorer.git
      - git clone https://github.com/discourse/discourse-staff-notes

```

[Disabling all site customizations](https://meta.discourse.org/t/local-customizations-broke-site-on-upgrade-how-to-disable/28724/17) did not help, too.

I’m out of ideas, and my Discourse instance is down :sadpanda:

* * *

I should add that I am running on the ([latest](https://github.com/discourse/discourse/commit/a874890ab3afc55737a2a1a77af95c38920b89a6)) **beta** commit.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 17, 2016, 9:25pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/2 "2016-06-17T21:25:12Z")

</div>

Odd, I just rebuilt both [discourse.codinghorror.com](http://discourse.codinghorror.com) and [talk.commonmark.org](http://talk.commonmark.org) to latest, and they load fine with these plugins:

- data-explorer
- docker-manager

Plus spoiler and staff notes are used here on meta.

What’s the default language used there? Any unusual site settings?

---

<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: [June 17, 2016, 9:27pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/3 "2016-06-17T21:27:46Z")

</div>

Can you try **without** the `spoiler-alert` plugin?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [June 17, 2016, 9:27pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/4 "2016-06-17T21:27:46Z")

</div>

Try removing the spoiler-alert plugin. It [was updated today](https://github.com/discourse/discourse-spoiler-alert/commit/1f0c2685ef4ca9c83e5818dbbba0308a1a8617ec) and I guess that change is not compatible with the beta branch.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [June 17, 2016, 9:28pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/5 "2016-06-17T21:28:15Z")

</div>

That worked (I haven’t singled it out yet, but removing _all_ official plugins worked).

I’m adding all other plugins back in to check whether this is really the cause… ⌛

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 17, 2016, 9:30pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/6 "2016-06-17T21:30:10Z")

</div>

This text will be blurred

Spoiler alert seems to be working ok here though.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [June 17, 2016, 9:30pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/7 "2016-06-17T21:30:32Z")

</div>

But you are probably running `tests-passed`, right?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 17, 2016, 9:31pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/8 "2016-06-17T21:31:24Z")

</div>

I see this is something for @tgxworld to look at.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [June 17, 2016, 9:35pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/9 "2016-06-17T21:35:34Z")

</div>

I can confirm this is caused by the Spoiler plugin. Thanks a lot, @gerhard! 🙂

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/rebuilding-caused-a-javascript-error-on-load/45975/10 "2024-06-08T12:45:37Z")

</div>

This topic was automatically closed after 2912 days. New replies are no longer allowed.
