I've somehow lost my 'About' topic for a category

AI-generated summary

Lost “About” Topic in Category

Ritchie is unable to find the “About the Category Name” topic in a category, despite the description still showing on the homepage. zogstrip suggests editing the category and clicking the “Edit Description” button, but Ritchie finds that this button is missing for the specific category.

zogstrip recommends using the rails console to resolve the issue, providing steps to access the console and retrieve a list of category names and associated topic IDs. If the topic ID is “nil”, a search for topics with titles starting with “About” can be performed in the console.

pfaffman questions what might have caused the “About” topic to be missing, suggesting it could be related to a renamed “untitled” topic.

Hi everyone,

I’ve somehow lost (possibly deleted) my “About the Category Name” topic.

Strangely enough, on the homepage of the forums, the description that I set is still showing under the category heading name, so it must be around somewhere!

Any pointers on how to find it??

I tried a normal search for some of the keywords - no trace :open_mouth:

Edit the category and click the Edit Description button in the modal :wink:

Thanks for the quick reply!

Worryingly, that Edit Description button isn’t there :confused: (it is on all the other categories!)

I think you’ll have to use the rails console for that one.

# ssh into server
cd /var/discourse
./launcher enter app
rails c
Category.pluck(:name, :topic_id)

You will get back a list of category names and their associated topic_id.

If the one you’re looking for is “nil”, you could try that in the rails console

Topic.unscoped.where("title ILIKE 'About %'").pluck(:title, :id)

What happened that there’s no about? Is this a renamed “untitled” or something like that?