Make WordPress Core

Opened 23 months ago

Closed 23 months ago

Last modified 22 months ago

#58980 closed defect (bug) (reported-upstream)

Post Editor Fails to Create Categories or Tags with Long Text; No Error Message Displayed

Reported by: nandhuraj's profile nandhuraj 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

  1. Go to Dashboard > Post > Edit post.
  1. Try adding a post category or tags with very long text in the “New Category Name field”.

For example: "Thisisjustanexamplecategorytextsample.Thisisjustanexamplecategorytextsample.ThisisjustanexamplecategorytextsampleThisisjustanexamplecategorytextsample.Thisisjustanexamplecategorytextsample.Thisisjustanexamplecategorytextsample."

  1. Click Add New Category
  1. . 🐞 Bug occurs.

Expected Results

  1. ✅ Either the category/tags should be created successfully, or there should be a notification indicating the error or a character limit.

Actual Results

  1. ❌ 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)

AddingLongCategoryText.jpg (23.4 KB) - added by nandhuraj 23 months ago.
Adding category with very long text.
NoCategoryCreatedAndNoErrorNotifcationJustRemovesTheText.jpg (19.4 KB) - added by nandhuraj 23 months ago.
No category created and no error message or character limit notification. Just the text is removed from the field.

Download all attachments as: .zip

Change History (10)

@nandhuraj
23 months ago

Adding category with very long text.

@nandhuraj
23 months ago

No category created and no error message or character limit notification. Just the text is removed from the field.

#1 @nandhuraj
23 months ago

  • Component changed from Posts, Post Types to Taxonomy
  • Focuses accessibility removed

#2 @dingo_d
23 months ago

  • Focuses coding-standards removed

#3 @huzaifaalmesbah
23 months ago

In my opinion, it is essential to establish a limit on category creation, accompanied by the display of error messages.

#4 @audrasjb
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 @rajinsharwar
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.

#7 in reply to: ↑ 6 @NekoJonez
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.

#8 @desrosj
22 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Summary changed from Bug Alert: Post Editor Fails to Create Categories or Tags with Long Text; No Error Message Displayed! to Post Editor Fails to Create Categories or Tags with Long Text; No Error Message Displayed
Note: See TracTickets for help on using tickets.