升级到 3.5.0.beta5 后,分类图标 TC 无法正常工作,最近的事件/聊天集成也存在其他问题

升级后,大多数已安装的 TC 无法正常工作,以下是一些列表:

  • Category Badge Styles(类别徽章样式)
  • Category Icons(类别图标)
  • Colorful Categories(彩色类别)
  • Discourse Buttons(Discourse 按钮)
  • Discourse Category Banners(Discourse 类别横幅)
  • Discourse Clickable Topic(Discourse 可点击主题)
  • Discourse Mermaid(Discourse Mermaid)

升级后日志中唯一的错误(总共有大约 300 个)是

Message (报告了 164 个副本)

[DiscourseJsProcessor] DEPRECATION: The parts property on path nodes is deprecated, use head and tail instead

Backtrace

activesupport-7.2.2.1/lib/active_support/broadcast_logger.rb:130:in `block in warn'
activesupport-7.2.2.1/lib/active_support/broadcast_logger.rb:231:in `block in dispatch'
activesupport-7.2.2.1/lib/active_support/broadcast_logger.rb:231:in `each'
activesupport-7.2.2.1/lib/active_support/broadcast_logger.rb:231:in `dispatch'
activesupport-7.2.2.1/lib/active_support/broadcast_logger.rb:130:in `warn'
/var/www/discourse/lib/discourse_js_processor.rb:50:in `block in create_new_context'
/var/www/discourse/lib/discourse_js_processor.rb:89:in `call'
/var/www/discourse/lib/discourse_js_processor.rb:89:in `block in v8_call'
/var/www/discourse/lib/discourse_js_processor.rb:88:in `synchronize'
/var/www/discourse/lib/discourse_js_processor.rb:88:in `v8_call'
/var/www/discourse/lib/discourse_js_processor.rb:113:in `perform'
/var/www/discourse/lib/discourse_js_processor.rb:11:in `transpile'
/var/www/discourse/lib/theme_javascript_compiler.rb:191:in `append_ember_template'
/var/www/discourse/lib/theme_javascript_compiler.rb:170:in `block in append_tree'
/var/www/discourse/lib/theme_javascript_compiler.rb:164:in `each_pair'
/var/www/discourse/lib/theme_javascript_compiler.rb:164:in `append_tree'
/var/www/discourse/app/models/theme.rb:189:in `update_javascript_cache!'
activerecord-7.2.2.1/lib/active_record/relation/delegation.rb:98:in `each'
activerecord-7.2.2.1/lib/active_record/relation/delegation.rb:98:in `each'
/var/www/discourse/app/models/theme.rb:502:in `block (2 levels) in resolve_baked_field'
activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:616:in `block in within_new_transaction'
activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:613:in `within_new_transaction'
activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:361:in `transaction'
activerecord-7.2.2.1/lib/active_record/transactions.rb:234:in `block in transaction'
activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:415:in `with_connection'
activerecord-7.2.2.1/lib/active_record/connection_handling.rb:296:in `with_connection'
activerecord-7.2.2.1/lib/active_record/transactions.rb:233:in `transaction'
/var/www/discourse/app/models/theme.rb:499:in `block in resolve_baked_field'
/var/www/discourse/lib/distributed_cache.rb:20:in `defer_get_set'
/var/www/discourse/app/models/theme.rb:233:in `get_set_cache'
/var/www/discourse/app/models/theme.rb:492:in `resolve_baked_field'
/var/www/discourse/app/models/theme.rb:402:in `lookup_field'
/var/www/discourse/app/helpers/application_helper.rb:631:in `theme_js_lookup'
/var/www/discourse/app/views/layouts/application.html.erb:56:in `_app_views_layouts_application_html_erb__1837954949798113264_245520'
actionview-7.2.2.1/lib/action_view/base.rb:281:in `public_send'
actionview-7.2.2.1/lib/action_view/base.rb:281:in `_run'actionview-7.2.2.1/lib/action_view/template.rb:285:in `block in render'
activesupport-7.2.2.1/lib/active_support/notifications.rb:212:in `instrument'
actionview-7.2.2.1/lib/action_view/template.rb:584:in `instrument_render_template'
actionview-7.2.2.1/lib/action_view/template.rb:273:in `render'
rack-mini-profiler-3.3.1/lib/mini_profiler/profiling_methods.rb:89:in `block in profile_method'
actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:77:in `block in render_with_layout'
activesupport-7.2.2.1/lib/active_support/notifications.rb:210:in `block in instrument'
activesupport-7.2.2.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport-7.2.2.1/lib/active_support/notifications.rb:210:in `instrument'
actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:75:in `render_with_layout'
actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:59:in `render_template'
actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:11:in `render'
actionview-7.2.2.1/lib/action_view/renderer/renderer.rb:58:in `render_template_to_object'
actionview-7.2.2.1/lib/action_view/renderer/renderer.rb:31:in `render_to_object'
actionview-7.2.2.1/lib/action_view/rendering.rb:135:in `block in _render_template'
actionview-7.2.2.1/lib/action_view/base.rb:308:in `in_rendering_context'
actionview-7.2.2.1/lib/action_view/rendering.rb:134:in `_render_template'
actionpack-7.2.2.1/lib/action_controller/metal/streaming.rb:258:in `_render_template'
actionview-7.2.2.1/lib/action_view/renderin...

你检查过是否有可用的更新吗?

1 个赞

TC的更新会在重建时自动安装,是的,全部都是最新版本。

开发者控制台中还有另一个错误,似乎与最近的事件/聊天集成有关:

backup-codes.js:33 ℹ️ Discourse v3.5.0.beta6-dev — https://github.com/discourse/discourse/commits/89d5cca2af — Ember v5.12.0
backup-codes.js:33 Uncaught Error: Could not find module `discourse/plugins/chat/discourse/components/channel-title` imported from `discourse/plugins/discourse-calendar/discourse/components/discourse-post-event/chat-channel`
    at loader.js:247:1
    at a (loader.js:258:1)
    at s.findDeps (loader.js:168:1)
    at a (loader.js:262:1)
    at s.findDeps (loader.js:168:1)
    at a (loader.js:262:1)
    at s.findDeps (loader.js:168:1)
    at a (loader.js:262:1)
    at s.findDeps (loader.js:168:1)
    at a (loader.js:262:1)
    at requireModule (loader.js:24:1)
    at y (backup-codes.js:33:1)
    at b (backup-codes.js:33:1)
    at backup-codes.js:33:1
    at g.start (backup-codes.js:33:1)
    at HTMLDocument.<anonymous> (start-discourse-2f46827b.js:3:52)
    at start-discourse-2f46827b.js:6:10
    at start-discourse-2f46827b.js:6:27

我禁用了聊天插件,但启用它后出现了这个横幅:

禁用“Category Icons TC”解决了其他 TC 问题,但现在我无法禁用聊天插件(它已从已安装插件列表中消失,但已启用)。

我将更改标题以更好地描述问题。

Category Icons 主题组件现已#弃用。您应该使用核心的类别表情符号/图标功能。

您可以尝试禁用其他组件并测试是否有一个导致另一个损坏。

1 个赞

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