Lost ability to create new topics

I self-host using docker and update from the tests-passed branch.

Updated to the following commit - ff42bef1b6 - which includes the following PR:

After installing, users are unable to bring up the new topic composer either by clicking “+ New Topic” or visiting /new-topic directly.

Javascript error on console:

TypeError: undefined is not an object (evaluating 'category.topic_template')

I suspected that the code in the PR might be at issue and went into the rails console and executed the following to set the general category is to one of our existing categories:

SiteSetting.general_category_id=5

This fixed the issue. The prior value was -1.

I believe that using a default value of nil for general_cateogory_id would fix this issue.

5 Likes

How old is your installation?

Did you have a category named “general” that you created, or was it automatically created?

2 Likes

Our installation is about 18 months old, but we are current with the tests-passed branch.

We have no “general” category at all.

2 Likes

With the general category commit, users on my forum now see then when clicking New:
image
The category box is blank because there isn’t a General category, and Uncategorized is disabled.

When attempting to create a topic I get this

3 Likes

Same here. Users had to choose a category before they can write. Now I install the Default Composer Category component while the fix is coming so the category will not be empty when open composer. :slightly_smiling_face:

4 Likes

Okay, a fix for this has been merged in! :wrench:

9 Likes

image
Much better now!

1 Like