由于javascript错误,无法回复[快速引用主题组件]

在 Discourse 核心的最后一次更新后,我们遇到了一个问题,即无法回复现有主题。

我创建了一个视频,在此处。

我收到的错误是:

Uncaught (in promise) Error: Cannot read properties of undefined (reading '_RUNTIME_')
    at G (YF7WRCK5.js:1:8735)
quick-quote-edits.js:22 Uncaught TypeError: this.currentUser.hideUserTipForever is not a function
    at e.replyToPost (quick-quote-edits.js:22:34)
    at q._join (index.ts:646:21)
    at q.join (index.ts:362:17)
    at p (index.js:156:1)
    at index.js:707:1
    at e.flaggedInstrument (index.js:126:1)
    at index.js:706:1
    at e.replyToPost (index.js:665:1)
    at n._sendComponentAction (widget.js:275:1)
    at widget.js:319:1
    at n.rerenderResult (widget.js:291:1)
    at n.sendWidgetAction (widget.js:314:1)
    at n.click (button.js:122:1)
    at hooks.js:222:1
    at hooks.js:188:1
    at n.rerenderResult (widget.js:291:1)
    at S (hooks.js:188:1)
    at HTMLDocument.<anonymous> (hooks.js:222:1)
    at HTMLDocument.dispatch (jquery.js:5135:1)
    at g.handle (jquery.js:4939:1)
quick-quote-edits.js:22 Uncaught TypeError: this.currentUser.hideUserTipForever is not a function
    at e.replyToPost (quick-quote-edits.js:22:34)
    at q._run (index.ts:665:23)
    at q._join (index.ts:640:19)
    at q.join (index.ts:362:17)
    at p (index.js:156:1)
    at index.js:707:1
    at e.flaggedInstrument (index.js:126:1)
    at index.js:706:1
    at index.js:665:1
    at y._triggerAction (d-button.js:180:1)
    at y.click (d-button.js:144:1)
deprecate-shim.js:33 DEPRECATION: The <discourse@component:plugin-connector::ember81>#attrs computed property was just overridden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually. [deprecation id: computed-property.override] See https://deprecations.emberjs.com/v3.x#toc_computed-property-override for more details.
(anonymous) @ deprecate-shim.js:33
deprecate-shim.js:33 DEPRECATION: The <discourse@component:plugin-connector::ember82>#attrs computed property was just overridden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually. [deprecation id: computed-property.override] See https://deprecations.emberjs.com/v3.x#toc_computed-property-override for more details.
(anonymous) @ deprecate-shim.js:33
quick-quote-edits.js:22 Uncaught TypeError: this.currentUser.hideUserTipForever is not a function
    at e.replyToPost (quick-quote-edits.js:22:34)
    at q._join (index.ts:646:21)
    at q.join (index.ts:362:17)
    at p (index.js:156:1)
    at index.js:707:1
    at e.flaggedInstrument (index.js:126:1)
    at index.js:706:1
    at e.replyToPost (index.js:665:1)
    at n._sendComponentAction (widget.js:275:1)
    at widget.js:319:1
    at n.rerenderResult (widget.js:291:1)
    at n.sendWidgetAction (widget.js:314:1)
    at n.click (button.js:122:1)
    at hooks.js:222:1
    at hooks.js:188:1
    at n.rerenderResult (widget.js:291:1)
    at S (hooks.js:188:1)
    at HTMLDocument.<anonymous> (hooks.js:222:1)
    at HTMLDocument.dispatch (jquery.js:5135:1)
    at g.handle (jquery.js:4939:1)

有人能帮忙解决这个问题吗?=) 非常感谢!

它似乎因为某些原因不喜欢“用户提示”。我无法在我的测试站点上复制此问题。它在安全模式下有效吗?

2 个赞

您好 @Festinger

此文件在 Discourse 核心中不存在,因此我认为这一定是主题/插件问题。您是否安装了 https://meta.discourse.org/t/quick-quote-theme-component/143621?如果安装了,能否请您尝试禁用它,看看是否有帮助?

(抄送 @merefield - 看起来该主题可能需要根据最近的一些核心更改进行一些调整)

4 个赞

谢谢,
@JammyDodger — 它确实起作用了,而且确实与主题组件有关。

@david – 我很高兴这就是问题的根源。我禁用了主题组件,问题似乎得到了解决。非常感谢,希望 @merefield 能提供修复。 =)

4 个赞

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