# Broken layout for admin login

**URL:** https://meta.discourse.org/t/broken-layout-for-admin-login/325781
**Category:** Support
**Created:** [September 10, 2024, 7:43am UTC](https://meta.discourse.org/t/broken-layout-for-admin-login/325781 "2024-09-10T07:43:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![GeniusConsulting](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geniusconsulting/32/447927_2.png) [@GeniusConsulting](https://meta.discourse.org/u/GeniusConsulting)
#### Post date: [September 10, 2024, 7:43am UTC](https://meta.discourse.org/t/broken-layout-for-admin-login/325781/1 "2024-09-10T07:43:26Z")

</div>

After last update to 3.4.0.beta2-dev version, when one of our Admin users login he got a broken layout as on screenshot.  
Master admin user layout looks just fine.  
Any idea ?

 ![Screenshot 2024-09-03 084234](https://global.discourse-cdn.com/meta/original/4X/9/1/4/9147f6c8c8017f2d65af2144b3aa0c198f33632d.png)

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [September 10, 2024, 7:46am UTC](https://meta.discourse.org/t/broken-layout-for-admin-login/325781/2 "2024-09-10T07:46:37Z")

</div>

Have you tried [safe mode](https://meta.discourse.org/t/53504?silent=true) to rule out and theme / plugin / theme component issues?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [September 10, 2024, 7:49am UTC](https://meta.discourse.org/t/broken-layout-for-admin-login/325781/3 "2024-09-10T07:49:34Z")

</div>

Any errors in the browser console?

> [@Resolving "SyntaxError: Unexpected identifier #..." caused by Cloudflare Auto Minify](https://meta.discourse.org/t/resolving-syntaxerror-unexpected-identifier-caused-by-cloudflare-auto-minify/311390):
>
> Cloudflare’s [‘Auto Minify’](https://developers.cloudflare.com/speed/optimization/content/auto-minify/) feature will break recent versions of Discourse. In the browser console, you will see an error like: Uncaught SyntaxError: Unexpected identifier '#...' Cloudflare are aware of the issue, and have added this message to their dashboard: Note: Please note that this feature may not be fully compatible with certain newer CSS and JS language features, which could potentially affect the functionality of the site Unfortunately, despite this critical issue, the feature wi…

Edit: Apparently yes

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/e/b/0ebc563dee9470cb854a2bea6f1633b8200396df.png)

---

<div class="post-metadata">

### Author: ![Trumpolin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trumpolin/32/447929_2.png) [@Trumpolin](https://meta.discourse.org/u/Trumpolin)
#### Post date: [September 10, 2024, 7:54am UTC](https://meta.discourse.org/t/broken-layout-for-admin-login/325781/4 "2024-09-10T07:54:27Z")

</div>

@ondrej the safe-mode doesn’t help and leads to the same issue.

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [September 10, 2024, 7:58am UTC](https://meta.discourse.org/t/broken-layout-for-admin-login/325781/5 "2024-09-10T07:58:01Z")

</div>

Hi

Are you using Cloudflare? Cloudflare’s auto-minify will cause this.

> [@Using Discourse with Cloudflare: Best Practices](https://meta.discourse.org/t/using-discourse-with-cloudflare-best-practices/293405/1):
>
> **Content Optimization** should have Brotli turned on, Rocket Loader™ off, and ‘Auto Minify’ off.
> 
> [Go here to set Content Optimization](https://dash.cloudflare.com/?to=/:account/:zone/speed/optimization).
> 
> ⚠ Discourse gets plenty site down reports [due to Rocket Loader™ being on](https://meta.discourse.org/search?q=rocket%20loader%20order%3Alatest).

> [@Unexpected identifier \`#...\` SyntaxError](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/8):
>
> Also please make sure you have “Auto Minify” disabled. It looks like Cloudflare have deprecated this feature because of incompatibility with recent javascript features: Looks like you will need to purge your cache after doing that.

---

<div class="post-metadata">

### Author: ![GeniusConsulting](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geniusconsulting/32/447927_2.png) [@GeniusConsulting](https://meta.discourse.org/u/GeniusConsulting)
#### Post date: [September 10, 2024, 8:27am UTC](https://meta.discourse.org/t/broken-layout-for-admin-login/325781/6 "2024-09-10T08:27:45Z")

</div>

Thank you guys, it is solved now…  
Indeed was issue with Cloudflare, even Rocket Loader was off, Auto Minify was on, and after disabling and purge cache, layout back to normal!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 10, 2024, 8:28am UTC](https://meta.discourse.org/t/broken-layout-for-admin-login/325781/7 "2024-10-10T08:28:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
