# 上一次主题组件更新后链接未显示

**URL:** https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144
**Category:** Bug
**Tags:** custom-header-links
**Created:** [2023年十月12日 07:57 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144 "2023-10-12T07:57:07Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ToddZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toddz/32/328350_2.png) [@ToddZ](https://meta.discourse.org/u/ToddZ)
#### Post date: [2023年十月12日 07:57 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/1 "2023-10-12T07:57:07Z")

</div>

糟糕。我今晚更新了这个组件，以获取最新的提交 _“切换到新 API 以渲染到插件出口。(#37)”_。我自定义的一个链接消失了，而且我无法让它再次显示。我已经卸载、重新安装、重启，但都没有效果。

（3.2.0.beta2-dev - 76e5a939d4，默认主题）

---

<div class="post-metadata">

### Author: ![ToddZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toddz/32/328350_2.png) [@ToddZ](https://meta.discourse.org/u/ToddZ)
#### Post date: [2023年十月13日 05:04 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/2 "2023-10-13T05:04:56Z")

</div>

更新：我删除了新版本，并从 [9 月 7 日的提交](https://github.com/discourse/discourse-custom-header-links/tree/9076bf8aae786ae38347b0ad16fd3a1e1655cfbe) 的 zip 文件中安装了。  
_成功_ – 该版本如之前一样工作。

有兴趣听听是否有人在 10 月 11 日的提交中遇到问题。

---

<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年十月13日 12:44 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/3 "2023-10-13T12:44:59Z")

</div>

是的。感谢您的报告，我可以重现。

更新我的主题组件也使我的标题链接消失了：

![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/4X/2/9/f/29f7757e3ca09bf3b0edf5fc15112edb96b9cd59.png)  
👇  
 ![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/4X/1/1/9/11986c011f4e62ffe75d1f3c1c943cb4a061aa73_2_690x72.png)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十月14日 00:19 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/5 "2023-10-14T00:19:24Z")

</div>

主题组件使用了 8 天前引入的新 API，而 `76e5a9` 是 2 周前的。\n\n这就是为什么什么都没有显示。API 不可用。\n\n如果可能的话，您可能需要升级 Discourse 来修复此问题。\n\n最近，我们看到了类似的情况 😄。我认为，在仪表板上显示一条警告更新的消息会很好。

---

<div class="post-metadata">

### Author: ![ToddZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toddz/32/328350_2.png) [@ToddZ](https://meta.discourse.org/u/ToddZ)
#### Post date: [2023年十月14日 06:55 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/6 "2023-10-14T06:55:09Z")

</div>

> [@Arkshine](#):
>
> 该主题组件使用了 8 天前引入的新 API，而 `76e5a9` 来自 2 周前。

有意思。我会从中学习，但对于出现类似情况我并不惊讶。这确实很容易遇到。

管理员仪表板显示我已完全更新：

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/8/9/f8907af1b2af3104ca19cb216520794d424f7c09.png)

（我不确定为什么我使用的是 Beta 版——我只是进行了官方的 Docker 安装。）

如果我转到“升级”选项卡，我确实看到一个可用的升级。但它是 **v3.2.0.beta1** ……这听起来比 **3.2.0.beta2** _旧_？“ **-dev** ”有什么意义？我找不到任何解释 Beta 版本进展/情况的文档。

> [@Arkshine](#):
>
> 在仪表板中显示一条消息来警告有关更新的信息会很好，我认为。

总的来说，组件真的应该能够提供与已安装的 Discord 版本不兼容的更新吗？这似乎会引起这种混乱。我期望的行为类似于 WordPress 插件，它们会清楚地表明在您更新基础安装之前它们将被阻止。

---

<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: [2023年十月14日 07:03 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/7 "2023-10-14T07:03:52Z")

</div>

> [@ToddZ](#):
>
> 我找不到任何解释 beta 版本进展/情况的文档。

> [@Understanding Discourse release channels](https://meta.discourse.org/t/why-does-discourse-always-install-beta-versions-by-default/264400):
>
> bookmark This guide explains the different types of Discourse releases and how different channels are used for updates. person_raising_hand Required user level: All users Release channels Discourse has four primary release channels, each serving a different purpose: main, latest[[1]](#footnote-1286715-1), beta, and stable. The default channel used when installing a production version of Discourse is latest. The naming conventions used by Discourse differ a bit from other software companies: main On GitHub…

正如你可以在那里读到的，只有当有新的里程碑时，你才会收到更新通知。如果你被告知每次提交后都更新，那将是一天几次。  
当你注意到一个 bug 时，最好先更新，看看它是否已经被修复。

我也喜欢 [Finding what version of Discourse you're using](https://meta.discourse.org/t/find-what-version-of-discourse-youre-using/104326) 作为解释，说明你如何在 GitHub 上检查你的确切版本。当然，作为管理员，你不需要 html 视图。

这是 -dev 的解释

> [@From Discourse 3.2: adding -dev suffix to beta versions under active development](https://meta.discourse.org/t/from-discourse-3-2-adding-dev-suffix-to-beta-versions-under-active-development/273490):
>
> On tests-passed, starting with 3.2.0.beta1-dev, Discourse core version numbers will include a -dev suffix to indicate that they’re not the final ‘release’ versions of a beta. This suffix doesn’t appear in the UI, so this is a technicality which will have no impact on the vast majority of people. For the technical details, see below: In the beta series for Discourse 3.1 and below, our versioning strategy was to ‘release’ a beta, and then leave the version number in tests-passed exactly the sam…

---

<div class="post-metadata">

### Author: ![ToddZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toddz/32/328350_2.png) [@ToddZ](https://meta.discourse.org/u/ToddZ)
#### Post date: [2023年十月14日 07:27 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/8 "2023-10-14T07:27:13Z")

</div>

感谢您提供的链接，@Moin——我查看了发布页面、Github 等，但在这里搜索得不够深入。

这在理论上解答了我很多疑问。但在阅读之后……

> “我们以 `3.2.0.beta1-dev` 开始 3.2 开发周期。当它准备好发布时，它将被标记为 `3.2.0.beta1`，然后我们将立即跟进另一个提交，开始开发 `3.2.0.beta2-dev`。”

……我仍然不确定是否应该从 beta2-dev “更新”到 beta1。

我可能会等到收到里程碑通知后再做决定。

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [2023年十月16日 05:32 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/9 "2023-10-16T05:32:33Z")

</div>

检查一下 Discourse/Docker 是否有更新。我这周早些时候也遇到了类似的问题。更新了 1 或 2 个 #Customization > Theme component 后，这些组件出现了显示问题。

虽然控制面板上没有显示 Discourse 有更新，但 Docker 和 Discourse 都有新的提交记录。

一旦我更新了 Discourse，这些组件就恢复正常工作了。

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2023年十月16日 06:54 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/10 "2023-10-16T06:54:50Z")

</div>

我们的[主题兼容性系统](https://meta.discourse.org/t/pinning-plugin-and-theme-versions-for-older-discourse-installs-discourse-compatibility/272665)似乎存在一个错误。我现在已经撤销了我的更改：

> <https://github.com/discourse/discourse-custom-header-links/pull/39>
>
> This partially reverts commit 87404864d20f318629a1413383c76b8ce4bfd398.
> 
> Compa…tibility issue is causing the theme to break: https://meta.discourse.org/t/-/282144

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2023年十一月16日 12:32 UTC](https://meta.discourse.org/t/links-not-appearing-since-the-last-theme-component-update/282144/13 "2023-11-16T12:32:15Z")

</div>


