# 最新更新在手机上显示空白屏幕

**URL:** <https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942>\
**Category:** Support\
**Created:** [2022年七月5日 07:05 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942 "2022-07-05T07:05:15Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2022年七月5日 07:05 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/1 "2022-07-05T07:05:15Z")

</div>

几分钟前，我更新了我几乎是原版的网站，发现移动版在登录时显示一个空白屏幕（Firefox）。你必须滚动页面才能看到正常的最新主题列表。桌面版没问题。

页眉部分在那里（徽标、搜索、汉堡包、头像）。然后屏幕上什么都没有了。

---

<div class="post-metadata">

**Author:** ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)\
**Post date:** [2022年七月5日 07:20 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/2 "2022-07-05T07:20:49Z")

</div>

您目前运行的是哪个构建版本？

网站在安全模式下是否正常？

---

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2022年七月5日 07:45 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/5 "2022-07-05T07:45:39Z")

</div>

### 2.9.0.beta6

( [843907d1ac](https://github.com/discourse/discourse/commits/843907d1ac8759a65f169de036ea20cae29f045d) )

尚未运行安全模式

我记得上一个运行正常的版本大约是此版本之前的 10 个提交。

> [@Richie](#):
>
> 网站在[安全模式](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504)下运行正常吗？

存在同样的问题。正如我提到的，该网站几乎 100% 是原生的。

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2022年七月5日 07:54 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/6 "2022-07-05T07:54:40Z")

</div>

`843907d1ac` 对我来说是有效的，Firefox 移动视图和 iOS 都没问题。  
你能发布或私信一个你的网站的 URL 吗？

---

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2022年七月5日 08:00 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/7 "2022-07-05T08:00:48Z")

</div>

我将通过私信发送登录信息。刚检查了 Brave，也是同样的问题。我看到页面正常加载一瞬间，然后就消失了。顺便说一下，是 Android。只是猜测，但似乎有什么东西在正常页面加载几毫秒后加载了空白页。

---

<div class="post-metadata">

**Author:** ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)\
**Post date:** [2022年七月5日 08:04 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/8 "2022-07-05T08:04:50Z")

</div>

> [@Amicable](#):
>
> 该网站几乎是100%原装的

几乎？ 😊

我很想听听安全模式测试的结果，因为可能是那1%导致了问题，比如插件等。

---

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2022年七月5日 08:05 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/9 "2022-07-05T08:05:36Z")

</div>

^ 我提到过我尝试过安全模式。是的，纯粹的 bar docker manager 插件。没有主题。

> [@Amicable](#):
>
> 同样的问题

另一位用户报告说使用 iOS 和 Discourse 应用程序时是空白的。

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2022年七月5日 08:46 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/10 "2022-07-05T08:46:00Z")

</div>

它没有将侧边栏宽度设置为 0（[已在此提交中完成](https://github.com/discourse/discourse/commit/56c0d8cf92b9f57489efe772318026bd703bc22b)，已包含在您的构建中）

您的移动端样式表比您的构建要旧得多。我不知道可能是什么原因。  
您是从命令行重新构建的吗？

 ![afbeelding](https://global.discourse-cdn.com/meta/original/4X/8/d/4/8d4d1b2bc68c5afb1f4b700f2f5162a2229752ab.png)

---

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2022年七月5日 08:47 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/11 "2022-07-05T08:47:50Z")

</div>

> [@RGJ](#):
>
> 您是从命令行重建的吗？

重建始终通过 admin/upgrade 链接进行。命令行仅在 docker manager 需要通过它进行升级时调用。

我认为这不是客户端缓存问题，因为我刚首次在网站上使用了 Brave（移动版）。

---

<div class="post-metadata">

**Author:** ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)\
**Post date:** [2022年七月5日 08:48 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/12 "2022-07-05T08:48:03Z")

</div>

抱歉，我猜我没有读完你帖子的这部分 😊

> [@Amicable](#):
>
> 尚未运行 [安全模式](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504)

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2022年七月5日 08:49 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/13 "2022-07-05T08:49:09Z")

</div>

嗯，我建议尝试命令行升级重建。

> [@Amicable](#):
>
> 我认为这不是客户端缓存问题，因为我刚在手机上使用 Brave 第一次访问该网站。

没错，而且我今天之前也从未访问过您的网站。所以是您的服务器上的某些东西决定提供旧资源。通过删除容器并从头开始重建来修复此问题。

---

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2022年七月5日 08:51 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/14 "2022-07-05T08:51:25Z")

</div>

当然，我可以试试。我想知道为什么某些样式表在升级链接中未被修改。这似乎很奇怪 🤔

---

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2022年七月5日 11:23 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/15 "2022-07-05T11:23:58Z")

</div>

> [@RGJ](#):
>
> 我建议尝试命令行升级重建

这解决了问题。但我认为在构建之间旧样式表会这样持续存在，这有些奇怪。

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2022年七月5日 11:24 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/16 "2022-07-05T11:24:56Z")

</div>

> [@Amicable](#):
>
> 但我认为旧样式表在两次构建之间一直这样存在，肯定有什么不对劲。

确实如此，那么也许团队中对 docker\_manager 和 asset pipeline 更了解的人可以发表意见？

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2022年七月6日 08:26 UTC](https://meta.discourse.org/t/latest-update-gives-blank-screen-on-mobile/231942/21 "2022-07-06T08:26:37Z")

</div>

我一时想不出任何原因——我不知道样式表编译系统最近有什么变化。现在事情又正常了，要找出根本原因会很棘手。但如果再次发生，请告知我们！
