# JS error after upgrade

**URL:** https://meta.discourse.org/t/js-error-after-upgrade/46523
**Category:** Support
**Created:** [June 27, 2016, 5:13pm UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523 "2016-06-27T17:13:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![shadowhand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shadowhand/32/108472_2.png) [@shadowhand](https://meta.discourse.org/u/shadowhand)
#### Post date: [June 27, 2016, 5:13pm UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523/1 "2016-06-27T17:13:19Z")

</div>

After upgrading to latest discourse this morning, I see the following error in the JS console and my forum does not load:

```plaintext
Uncaught SyntaxError: missing ) after argument list

```

Here’s a screenshot of the issue, you can see it live on [http://discourse.kohanaframework.org](http://discourse.kohanaframework.org)

![](https://global.discourse-cdn.com/meta/optimized/3X/6/1/614b8eefc7f7284096851ea891c7d0e5c1cd0777_2_690x47.png)

---

<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 27, 2016, 5:58pm UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523/2 "2016-06-27T17:58:36Z")

</div>

Are you running any non-standard plugins?  
Are you behind Cloudflare?

---

<div class="post-metadata">

### Author: ![shadowhand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shadowhand/32/108472_2.png) [@shadowhand](https://meta.discourse.org/u/shadowhand)
#### Post date: [June 27, 2016, 6:13pm UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523/3 "2016-06-27T18:13:57Z")

</div>

Yes, we use CloudFlare. I’ve turned off “JS minification” and that seems to have made the problem go away.

Does Discourse not test against minified files?!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 27, 2016, 6:20pm UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523/4 "2016-06-27T18:20:40Z")

</div>

> [@shadowhand](#):
>
> Does Discourse not test against minified files?!

The purpose of a minify is to NOT alter program behavior, while decreasing size.

Discourse already minifies the assets. Cloudfare have a broken minifier.

---

<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 27, 2016, 11:07pm UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523/5 "2016-06-27T23:07:24Z")

</div>

I think you meant to say:

> Does Cloudflare not test their minifier?!

When functioning code is broken by a third party, that is not the code’s fault.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 27, 2016, 11:24pm UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523/6 "2016-06-27T23:24:55Z")

</div>

Can you please raise this with cloudflare and post your issue number here?

---

<div class="post-metadata">

### Author: ![shadowhand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shadowhand/32/108472_2.png) [@shadowhand](https://meta.discourse.org/u/shadowhand)
#### Post date: [June 28, 2016, 12:30am UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523/7 "2016-06-28T00:30:51Z")

</div>

Sam, I’ve raised the issue to CF, my issue number is #1067945

---

<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: [July 11, 2016, 7:44am UTC](https://meta.discourse.org/t/js-error-after-upgrade/46523/8 "2016-07-11T07:44:05Z")

</div>

Good news! After some public shaming on my part, this is now fixed on Cloudflare’s side for everyone, worldwide.

I’m deleting all the other topics on this as ancient history.

---

<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/js-error-after-upgrade/46523/9 "2024-06-08T12:45:30Z")

</div>

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