When I try to create new category, it does not complete and has error

This is strange, when I tried to create new category it has this error. And I can not create any new category

  • I try to create new category named “edit” or “editor”

1 Like

Can you translate the error message please :grin:

1 Like

It 's “come back to category” button, but it does not, and display that error below.

1 Like

I think its a translation issue.

1 Like

The translation from EN to VI looks fine :frowning:

Somewhere, something is broken

EN:

VI

Code:

1 Like

No, it seems not language issue
I tried to change to english. And now error still display

1 Like

What plugins do you have installed ?

1 Like

These are plugins I installed:

[discourse-akismet]

[discourse-checklist]

[discourse-graphviz]

[discourse-sitemap]

[discourse-solved]
1 Like

Theme components ?

I just can’t replicate this issue on my test discourse

1 Like

Hi, these are components I installed:

Custom Header Links

DiscoTOC

discourse-image-annotator

Discourse Kanban

Keyboard Text Button Component
1 Like

This is errors from my console:

3_application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:24011 To prevent errors, add a `pluginId` key to your changes when calling `modifyClass`
ae @ _application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:24011
_application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:609 Deprecation notice: route:discovery.parentCategory was replaced with route:discovery.category (deprecated since Discourse 2.6.0)
e.default @ _application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:609
2_application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:24011 To prevent errors, add a `pluginId` key to your changes when calling `modifyClass`
ae @ _application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:24011
_application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:609 Deprecation notice: route:discovery.categoryWithID was replaced with route:discovery.category (deprecated since Discourse 2.6.0)
e.default @ _application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:609
_application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:24011 To prevent errors, add a `pluginId` key to your changes when calling `modifyClass`
ae @ _application-a15c914e2cec8624198e68be9bd3d39b56cd72913d39d7e27f39a1cd2a1065f7.js:24011
gtm.js?id=GTM-PMQ7HQM:288 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src https://help.working24.net/logs/ https://help.working24.net/sidekiq/ https://help.working24.net/mini-profiler-resources/ https://help.working24.net/assets/ https://help.working24.net/brotli_asset/ https://help.working24.net/extra-locales/ https://help.working24.net/highlight-js/ https://help.working24.net/javascripts/ https://help.working24.net/plugins/ https://help.working24.net/theme-javascripts/ https://help.working24.net/svg-sprite/ https://www.googletagmanager.com/gtm.js 'nonce-0f580e0f955faa97f3cb8a1864d16eb4' https://help.working24.net/logs/ https://help.working24.net/sidekiq/ https://help.working24.net/mini-profiler-resources/ https://help.working24.net/assets/ https://help.working24.net/brotli_asset/ https://help.working24.net/extra-locales/ https://help.working24.net/highlight-js/ https://help.working24.net/javascripts/ https://help.working24.net/plugins/ https://help.working24.net/theme-javascripts/ https://help.working24.net/svg-sprite/ https://www.googletagmanager.com/gtm.js https://gc.kis.v2.scr.kaspersky-labs.com wss://gc.kis.v2.scr.kaspersky-labs.com https://connect.facebook.net/vi_VN/ https://viewer.diagrams.net/". Either the 'unsafe-inline' keyword, a hash ('sha256-B6lPd158nbG8rCxsx2kpy/8ua86KST6EpT4plGVsNqY='), or a nonce ('nonce-...') is required to enable inline execution.

(anonymous) @ gtm.js?id=GTM-PMQ7HQM:288
/message-bus/052d116f94b54ca185973f11560ed0a1/poll?dlp=t:1 Failed to load resource: net::ERR_TIMED_OUT
/message-bus/052d116f94b54ca185973f11560ed0a1/poll?dlp=t:1 Failed to load resource: net::ERR_CONNECTION_TIMED_OUT
DevTools failed to load source map: Could not load content for https://help.working24.net/theme-javascripts/cropro.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Hi, I found the reason: discourse has error when I try to named category as “Edit” (slug: edit)

  • Error appear when I named “Edit”
  • Error disappear when I named “Edita”

It seems your language fields used “edit” for slug of core something
Could you check and fix for this?

1 Like

Hello @cmdntd,

“Edit” is used in the settings for the Post Menu and in the Hidden Post Menu.
/admin/site_settings/category/basic
I don’t believe you will be able to use “Edit” as a category name/slug.

2 Likes

I tested it

1 Like

Try “Edit” with slug “edit”, and go to this new one
Error will appear, just when you go to it.

It worked? Great.

Is it possible he’s working in the wrong editor and is editing an existing category Website? It doesn’t look like the Create New Category creator, but the editor to make changes in an existing category. The screenshot shows Edit: Website - an existing category(?), and it shows Save Category at the bottom instead of the New Category button used to create the new category.

1 Like

Yes, exactly

  • First, I try to create “Website > Edit”
  • Second, when I go to that, it redirected me to “Website > None” (like image above)
1 Like

ok, i manage to repo it.

so edit should not be used

2 Likes

From the hamburger menu at the upper left, click on Categories. Then click on the wrench icon that’s next to the + New Topic button and this is what you should see.

image

Click on that and it will take you to the New Category creator where you can create a new top level category or a sub-category in an existing category. If you want to create a top level category, where it says Parent Category, leave it blank. But if you want your new category to be a sub-category of an existing category, click on that and either scroll down to an existing category or you may search for it within that box.

This is what you should see for creating a new category.

Yes, of course

I created many categories and sub-one before
Except this, I can not create with name “Edit”

1 Like