今天 discourse-solved 升级后,我的网站崩溃了

网站是空白的,并且似乎一直在加载,最终导致内存不足……
当我禁用该插件时,网站恢复正常 :rofl:

3 个赞

谢谢!我遇到了同样的问题。禁用了所有主题组件,但仍然无效……

你对此做了什么 :joy: @Dannii

有一个关于未解决的弃用问题的开放 PR,但不知道这是否是原因。

https://meta.discourse.org/t/discourse-solved/30155/348?u=lilly

是我的错,我想……我正在查看 :blush:

奇怪的是,测试通过了。

2 个赞

修复正在进行中。 :slightly_smiling_face:

3 个赞

哈哈,真逗,我刚看到这个:

image

谢谢 @David 发现这个问题。

4 个赞

它甚至在弃用通知中也有记录 :man_facepalming:

或者,如果你仍然需要回退 shim,请使用 import { getOwnerWithFallback } from 'discourse-common/lib/get-owner';

抱歉造成了干扰!

4 个赞

没关系,这种事情本应被测试套件发现!我们会尽快改进它 :eyes:

PR 现已合并,请尝试在 discourse-solved 上运行更新 @Dennis_P_Z @Dannii

6 个赞

即使出现问题,你们也太棒了。 :tada: :slight_smile:

4 个赞

感谢团队的快速行动 @david @merefield @Arkshine @Dannii

3 个赞

更新 discourse-solved 到最新版本后,我这里仍然失败:

solved-status-filter.js:32 Uncaught (in promise) TypeError: (0 , s.getOwnerWithFallback) is not a function
    at shouldRender (solved-status-filter.js:32:1)
    at plugin-connectors.js:166:1
    at Array.filter (匿名)
    at e.renderedConnectorsFor (plugin-connectors.js:164:1)
    at get connectors [as connectors] (plugin-outlet.js:126:1)
    at Ce (index.js:1251:1)
    at reference.js:175:1
    at reference.js:136:1
    at e.track (validator.js:668:1)
    at f (reference.js:135:1)
    at index.js:5588:1
    at reference.js:136:1
    at e.track (validator.js:668:1)
    at f (reference.js:135:1)
    at index.js:5588:1
    at reference.js:136:1
    at e.track (validator.js:668:1)
    at f (reference.js:135:1)
    at reference.js:312:1
    at reference.js:136:1
    at e.track (validator.js:668:1)
    at f (reference.js:135:1)
    at Object.evaluate (runtime.js:3440:1)
    at Object.evaluate (runtime.js:1052:1)
    at It.evaluateSyscall (runtime.js:4263:1)
    at It.evaluateInner (runtime.js:4234:1)
    at It.evaluateOuter (runtime.js:4227:1)
    at Wt.next (runtime.js:5058:1)
    at Wt._execute (runtime.js:5045:1)
    at Wt.execute (runtime.js:5038:1)
    at Qt.sync (runtime.js:5105:1)
    at wr.render (index.js:6749:1)
    at index.js:7013:1
    at Mt (runtime.js:4139:1)
    at Tr._renderRoots (index.js:6996:1)
    at Tr._renderRootsTransaction (index.js:7039:1)
    at Tr._renderRoot (index.js:6985:1)
    at Tr._appendDefinition (index.js:6911:1)
    at Tr.appendOutletView (index.js:6899:1)
    at p.invoke (queue.ts:203:14)
    at p.flush (queue.ts:98:13)
    at h.flush (deferred-action-queues.ts:75:19)
    at $._end (index.ts:616:32)
    at _boundAutorunEnd (index.ts:257:12)

你好 Andrea,欢迎回来 :wave:

根据这个错误 getOwnerWithFallback is not a function,看起来你需要升级 Discourse 才能让插件正常工作。

@Arkshine 谢谢!您知道哪个 Discourse 版本/docker.io 标签包含该功能吗?我们通过 [1] 使用 Discourse 版本。

谢谢!

[1] https://hub.docker.com/r/discourse/base/

相关提交:DEV: Rename custom getOwner to getOwnerWithFallback (#23437) · discourse/discourse@8958b4f · GitHub

更改发生在三周前(9 月 26 日);我认为从 2.0.20230927-0028-slim 开始应该可以。

1 个赞

确认更新似乎已解决问题。

3 个赞

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