Les icônes de catégorie TC ne fonctionnent pas après la mise à niveau vers la version 3.5.0.beta5, problèmes supplémentaires avec l’intégration récente d’événements/de chat

Après la mise à niveau, la plupart des CT installés ne fonctionnent plus, voici une liste de quelques-uns :

  • Category Badge Styles
  • Category Icons
  • Colorful Categories
  • Discourse Buttons
  • Discourse Category Banners
  • Discourse Clickable Topic
  • Discourse Mermaid

La seule erreur dans les logs (environ 300 au total) après la mise à niveau est

Message (164 copies signalées)

[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...

Avez-vous vérifié si des mises à jour sont disponibles pour eux ?

1 « J'aime »

Les mises à jour des TC sont automatiquement installées lors de la reconstruction, et oui, tous sont à la dernière version.

Il y a une autre erreur dans la console du développeur, qui semble liée à l’intégration récente des événements/du chat :

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

J’avais désactivé le plugin de chat, mais lorsque je l’ai activé, cette bannière est apparue :

La désactivation des icônes de catégorie TC a résolu les autres TC, mais maintenant je ne peux pas désactiver le plugin de chat (il est absent de la liste des plugins installés, mais il est activé).

Je vais changer le titre pour mieux décrire le problème.

Le composant thématique Icônes de catégorie est désormais #déprécié. Vous devriez utiliser la fonctionnalité de base d’emoji/icônes de catégorie.

Vous pourriez essayer de désactiver les autres composants et de tester si l’un d’eux en fait planter un autre.

1 « J'aime »

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