# 添加导航菜单分类时屏幕空白

**URL:** https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593
**Category:** Support
**Tags:** sidebar
**Created:** [2023年八月10日 04:27 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593 "2023-08-10T04:27:33Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Meathead40](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meathead40/32/256808_2.png) [@Meathead40](https://meta.discourse.org/u/Meathead40)
#### Post date: [2023年八月10日 04:27 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/1 "2023-08-10T04:27:33Z")

</div>

我的论坛侧边栏目前显示四个类别。我想增加这个数字。当我按下编辑铅笔按钮进行更改时，我的屏幕变暗了，但没有出现任何更改选项。有什么线索吗？

谢谢！

---

<div class="post-metadata">

### Author: ![Meathead40](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meathead40/32/256808_2.png) [@Meathead40](https://meta.discourse.org/u/Meathead40)
#### Post date: [2023年八月10日 22:19 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/2 "2023-08-10T22:19:54Z")

</div>

忽略 - 我已成功使用安全模式修复。仍然不确定是哪个组件导致了问题，但至少我有一个解决方案。

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2023年八月11日 07:18 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/3 "2023-08-11T07:18:32Z")

</div>

如果你查明了是哪个组件导致的，可以分享一下吗？如果它至少在 #Customization > Theme component 中有列出，那知道会很有帮助。如果是自定义的组件，那对咱们社区来说就没那么重要了。🙂

---

<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: [2023年八月11日 07:26 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/4 "2023-08-11T07:26:57Z")

</div>

检查浏览器控制台中的错误通常有助于查明问题。您的 `/logs` 页面可能也有一些信息。🤞

---

<div class="post-metadata">

### Author: ![Meathead40](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meathead40/32/256808_2.png) [@Meathead40](https://meta.discourse.org/u/Meathead40)
#### Post date: [2023年八月12日 20:14 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/6 "2023-08-12T20:14:55Z")

</div>

感谢您的回复。我一直在测试，但似乎无法弄清楚问题所在。我禁用了所有主题组件和插件，但问题仍然存在，即如果我点击类别编辑铅笔图标或底部的微型键盘，屏幕会正常变暗，但从未显示对话框。日志似乎没有显示任何错误，我也无法从 Chrome 控制台中判断。我在 Firefox 和 Edge 中也遇到了相同的行为。

唯一能解决这个问题的方法是使用安全模式。感谢您提供任何其他线索/提示！

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月12日 20:33 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/7 "2023-08-12T20:33:43Z")

</div>

> [@Meathead40](#):
>
> 唯一能解决这个问题的方法是使用[安全模式](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504)。感谢任何其他线索/技巧！

那么很可能是主题、主题组件或插件。安全模式就像禁用所有这些，所以也许可以再试一次，然后逐个重新添加它们。您也可以尝试每个主题/主题组件中的预览按钮来缩小范围。

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2023年八月12日 20:42 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/8 "2023-08-12T20:42:41Z")

</div>

禁用所有这些，除了服务器级别。因此，它仅在操作设备的组件出现问题时才有所帮助。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月12日 20:46 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/9 "2023-08-12T20:46:12Z")

</div>

> [@Meathead40](#):
>
> 目前我的论坛在侧边栏显示了四个类别。我想增加这个数字。

如果你是管理员，还有一个“默认导航菜单类别”的设置，用于设置全局默认值。铅笔图标是供个人用户更改他们自己的列表的。

但显然导航菜单中的类别编辑按钮有问题。点击铅笔图标编辑标签或其他导航菜单部分怎么样？

---

<div class="post-metadata">

### Author: ![Meathead40](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meathead40/32/256808_2.png) [@Meathead40](https://meta.discourse.org/u/Meathead40)
#### Post date: [2023年八月12日 21:42 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/10 "2023-08-12T21:42:51Z")

</div>

再次感谢。我禁用了所有主题组件、插件，并切换回了默认主题，但仍然遇到相同的行为/问题。我拥有管理员权限。

当我按下铅笔按钮时，我在 Chrome 控制台中看到这个：

```plaintext
Autofocus processing was blocked because a document already has a focused element.
﻿

```

不确定这是否有助于提供更多线索……

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年八月12日 21:58 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/11 "2023-08-12T21:58:43Z")

</div>

> [@Meathead40](#):
>
> ```plaintext
> document already has a focused element.
> 
> ```

嗯，也许可以试试无痕模式（或者关闭你的浏览器扩展，甚至换个浏览器）。 🤔

另外，也许可以确保你运行的是 Discourse 的最新通过测试或支持的 Beta 版本？请参见 #Announcements

---

<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: [2023年九月11日 13:05 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/12 "2023-09-11T13:05:50Z")

</div>

最后，你有没有弄清楚是怎么回事？

---

<div class="post-metadata">

### Author: ![Meathead40](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meathead40/32/256808_2.png) [@Meathead40](https://meta.discourse.org/u/Meathead40)
#### Post date: [2023年九月14日 03:42 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/13 "2023-09-14T03:42:04Z")

</div>

很抱歉，没有——我已经尝试了所有方法，但问题仍然存在。我也已升级到最新版本。

---

<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: [2023年九月14日 05:27 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/14 "2023-09-14T05:27:40Z")

</div>

我认为类似的事情也发生在这个[主题](https://meta.discourse.org/t/modal-is-set-to-display-none/277649/7)中，结果是 [https://meta.discourse.org/t/landing-pages-plugin/180967，这会不会也是你的问题？](https://meta.discourse.org/t/landing-pages-plugin/180967%EF%BC%8C%E8%BF%99%E4%BC%9A%E4%B8%8D%E4%BC%9A%E4%B9%9F%E6%98%AF%E4%BD%A0%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%9F)

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2023年九月14日 07:19 UTC](https://meta.discourse.org/t/blank-screen-when-adding-categories-to-the-navigation-menu/274593/15 "2023-09-14T07:19:08Z")

</div>

就记录而言，在极少数情况下，已安装但禁用的插件会导致问题（至少在很久以前，当聊天插件还是外部插件时）。
