# CSS overrides aren't working after restoring from backup

**URL:** https://meta.discourse.org/t/css-overrides-arent-working-after-restoring-from-backup/38049
**Category:** Bug
**Created:** [16 Janeiro , 2016 17:26 UTC](https://meta.discourse.org/t/css-overrides-arent-working-after-restoring-from-backup/38049 "2016-01-16T17:26:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![axfelix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/axfelix/32/65166_2.png) [@axfelix](https://meta.discourse.org/u/axfelix)
#### Post date: [16 Janeiro , 2016 17:26 UTC](https://meta.discourse.org/t/css-overrides-arent-working-after-restoring-from-backup/38049/1 "2016-01-16T17:26:11Z")

</div>

Hi folks,

Just moved a Discourse instance to a new server using the builtin backup functionality. Everything went smoothly, except some of the old CSS overrides don’t seem to be working anymore, and there’s a lot of this in the logs:

`Error: Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 4.0.0) or downgrade your runtime to an older version (>= 2.0.0-beta.1).`  
` at Object.r [as checkRevision] (http://selectbutton.net/assets/vendor-b446ddf94c0fbadd8f0c95717a0ead0e.js:1:10979)`  
` at Object.i [as template] (http://selectbutton.net/assets/vendor-b446ddf94c0fbadd8f0c95717a0ead0e.js:1:12411)`  
` at r.e.template (http://selectbutton.net/assets/vendor-b446ddf94c0fbadd8f0c95717a0ead0e.js:1:2821)`

Tried rebuilding a couple times and toggling the overrides on and off but that doesn’t seem to be working. Any advice?

---

<div class="post-metadata">

### Author: ![axfelix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/axfelix/32/65166_2.png) [@axfelix](https://meta.discourse.org/u/axfelix)
#### Post date: [16 Janeiro , 2016 18:25 UTC](https://meta.discourse.org/t/css-overrides-arent-working-after-restoring-from-backup/38049/2 "2016-01-16T18:25:55Z")

</div>

PS – I suppose it’s possible that this coincided with an update that broke some of our more complicated CSS.

---

<div class="post-metadata">

### Author: ![axfelix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/axfelix/32/65166_2.png) [@axfelix](https://meta.discourse.org/u/axfelix)
#### Post date: [16 Janeiro , 2016 21:18 UTC](https://meta.discourse.org/t/css-overrides-arent-working-after-restoring-from-backup/38049/3 "2016-01-16T21:18:01Z")

</div>

figured it out – all of the non-header overrides were working, but the stuff in the headers was not, and making a change to the headers and saving it caused it to recompile.

so, reassuringly, this is not an upstream change that broke our CSS overrides, but it does seem to be a legitimate bug if you’re restoring a backup that includes CSS headers, because those don’t get automatically recompiled.

---

<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: [17 Janeiro , 2016 00:35 UTC](https://meta.discourse.org/t/css-overrides-arent-working-after-restoring-from-backup/38049/4 "2016-01-17T00:35:58Z")

</div>

Interesting, any ideas here @eviltrout? Appears to be handlebars version related.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [18 Janeiro , 2016 17:47 UTC](https://meta.discourse.org/t/css-overrides-arent-working-after-restoring-from-backup/38049/5 "2016-01-18T17:47:42Z")

</div>

Thanks for reminding me about that feature! We upgraded Handlebars to deal with security issues and I forgot that we precompiled some stuff in the database too. It’s fixed in this commit:

[https://github.com/discourse/discourse/commit/1f290a833643ba2bb864f9c661032d9c5bc75feb](https://github.com/discourse/discourse/commit/1f290a833643ba2bb864f9c661032d9c5bc75feb)

---

<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: [18 Janeiro , 2016 23:06 UTC](https://meta.discourse.org/t/css-overrides-arent-working-after-restoring-from-backup/38049/6 "2016-01-18T23:06:47Z")

</div>


