カテゴリのいずれかにアクセスできません

https://meta.discourse.org/t/discourse-2-6-0-beta5-release-notes/168756

beta5 に更新してから、カテゴリの一つにアクセスできなくなったことについて質問です。必要なログがあればお知らせください。私は管理者ですが、特定の1つのカテゴリ(Unofficial-events)をクリックして選択しようとすると、以下が表示されます:

他のカテゴリはすべて問題なく開けるようです。

このカテゴリ名に特殊文字は含まれていますか?

「コミュニティカレンダー」

この「コミュニティカレンダー」というカテゴリを他のカテゴリとマージするためのアドバイスがあれば、教えていただきたいと思い、再度ご連絡しました。カテゴリを選択してもまだアクセスできませんが、個別の投稿は表示され、エラーログも表示されていません。

おっと!そのページは存在しないか、非公開です。 :thinking:

これはこのカテゴリの Rails 出力です。

サマリー

#\u003cCategory:0x000055cde93db078
id: 36,
name: “Community Calendar”,
color: “ED207B”,
topic_id: 419,
topic_count: 15,
created_at: Sun, 24 Mar 2019 18:10:42 UTC +00:00,
updated_at: Sun, 20 Dec 2020 08:27:45 UTC +00:00,
user_id: 2,
topics_year: 5,
topics_month: 0,
topics_week: 0,
slug: “Unofficial-events”,
description: “This \u003ca href=\"https://discuss.noisebridge.info/calendar\\\”\u003eunofficial, community calendar\u003c/a\u003e is for any event you wish to share! Life outside Noisebridge.",
text_color: “FFFFFF”,
read_restricted: false,
auto_close_hours: nil,
post_count: 26,
latest_post_id: 8837,
latest_topic_id: 2105,
position: 20,
parent_category_id: nil,
posts_year: 9,
posts_month: 0,
posts_week: 0,
email_in: nil,
email_in_allow_strangers: false,
topics_day: 0,
posts_day: 0,
allow_badges: true,
name_lower: “community calendar”,
auto_close_based_on_last_post: false,
topic_template: “This Calendar is for any event you want to share!\nEvents do not have to involve Noisebridge!\n”,
contains_messages: nil,
sort_order: “”,
sort_ascending: nil,
uploaded_logo_id: 504,
uploaded_background_id: nil,
topic_featured_link_allowed: true,
all_topics_wiki: false,
show_subcategory_list: false,
num_featured_topics: 3,
default_view: “calendar”,
subcategory_list_style: “rows_with_featured_topics”,
default_top_period: “all”,
mailinglist_mirror: false,
minimum_required_tags: 0,
navigate_to_first_post_after_read: false,
search_priority: 0,
allow_global_tags: false,
reviewable_by_group_id: nil,
required_tag_group_id: nil,
min_tags_from_required_group: 1,
read_only_banner: nil,
default_list_filter: “all”\u003e

これは以下のことに関連している可能性があります:
https://meta.discourse.org/t/discourse-event/149964/135

ありがとうございます。rails コンソールから default_view の修正を適用する必要がありそうですね。「Unofficial-events」というカテゴリ(ID 36)を最新のビューに更新する方法が不明確です。

この手順に従おうとしましたが、myCategoryUnofficial-events と ID 36 に書き換える必要があるかどうかは不明です。

\"rails コンソールは初心者です。私の試みの概要\"

$ ./launcher enter app

rails c

[1] pry(main)> Unofficial-events = Category.find_by(id: 36)
NameError: uninitialized constant Unofficial
from (pry):1:in __pry__' [2] pry(main)> Unofficial-events.default_view = "latest" NameError: uninitialized constant Unofficial from (pry):2:in pry
[3] pry(main)> Unofficial-events.save!
NameError: uninitialized constant Unofficial
from (pry):3:in __pry__' [4] pry(main)> myCategory = Category.find_by(id 36) NoMethodError: undefined method id’ for main:Object
from (pry):4:in `pry
[5] pry(main)>

:thinking: Unofficial-event のダッシュについては確信がありませんが、変数名として myCategory は問題ないはずです。

from (pry):3:in __pry__' [4] pry(main)> myCategory = Category.find_by(id 36) NoMethodError: undefined method id’ for main:Object
from (pry):4:in `pry
[5] pry(main)>

@Benjamin_D さん、ありがとうございます。もし誰かがこれを行う必要がある場合は、この投稿の最後のステップに小さなタイプミスがあることに注意してください。myCategory.save! で保存します。この投稿

id と 36 の間にコロン : が抜けています