#58980 closed defect (bug) (reported-upstream)
Post Editor Fails to Create Categories or Tags with Long Text; No Error Message Displayed
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | |
Focuses: | ui | Cc: |
Description
Description
When attempting to create a category or tags with very long text in the post editor page, the category or tags are not being created. Furthermore, there is no error message or notification displayed for mentioning about exceeding the character limit; the post editor page simply refreshes/ removes the category entered in the field.
Environment
- WordPress: 6.3-RC3-56344
- PHP: 7.4.33
- Server: TasteWP-S4 Official/3.0.0
- Database: mysqli (Server: 8.0.32-0ubuntu0.20.04.2 / Client: mysqlnd 7.4.33)
- Browser: Chrome 114.0.0.0 (macOS)
- Theme: Twenty Twenty-Three 1.2
- MU-Plugins: None activated
- Plugins:
- WordPress Beta Tester 3.5.2
Steps to Reproduce
- Go to Dashboard > Post > Edit post.
- Try adding a post category or tags with very long text in the “New Category Name field”.
For example: "Thisisjustanexamplecategorytextsample.Thisisjustanexamplecategorytextsample.ThisisjustanexamplecategorytextsampleThisisjustanexamplecategorytextsample.Thisisjustanexamplecategorytextsample.Thisisjustanexamplecategorytextsample."
- Click Add New Category
- . 🐞 Bug occurs.
Expected Results
- ✅ Either the category/tags should be created successfully, or there should be a notification indicating the error or a character limit.
Actual Results
- ❌ The post editor page simply refreshes/removes the category entered in the field without creating the category/tag, and there is no error message or notification displayed mentioning about exceeding the character limit.
Screenshot attached for reference.
Attachments (2)
Change History (10)
@
23 months ago
No category created and no error message or character limit notification. Just the text is removed from the field.
#1
@
23 months ago
- Component changed from Posts, Post Types to Taxonomy
- Focuses accessibility removed
#3
@
23 months ago
In my opinion, it is essential to establish a limit on category creation, accompanied by the display of error messages.
#4
@
23 months ago
- Component changed from Taxonomy to Editor
- Focuses template removed
- Keywords close added; needs-patch removed
- Severity changed from major to normal
- Version trunk deleted
Thanks for opening this ticket!
However, that's not something we can fix on WP Core side, it should be reported on Gutenberg GitHub repository instead: https://github.com/WordPress/gutenberg/issues/
Please let us know when the issue is created on GitHub, so we can close this ticket as reported-upstream
.
#5
@
23 months ago
Hi @audrasjb, I do have a suggestion here. Why not show a custom error when the term name exceeds 200 characters? Currently, it shows, Cannot insert into Database. And for the editor meta boxes, I agree that it should be fixed within the Gutenburg project.
#6
follow-up:
↓ 7
@
23 months ago
Reported the issue in Gutenburg: https://github.com/WordPress/gutenberg/issues/53368
#7
in reply to:
↑ 6
@
23 months ago
- Resolution set to reported-upstream
- Status changed from new to closed
Replying to rajinsharwar:
Reported the issue in Gutenburg: https://github.com/WordPress/gutenberg/issues/53368
And already with a PR to fix that. :) Nice work Rajin.
So, gonna close this one with report upstream.
Adding category with very long text.