[wp-trac] [WordPress Trac] #56410: WordPress API error when trying to add tags

WordPress Trac noreply at wordpress.org
Sat Aug 20 03:49:31 UTC 2022


#56410: WordPress API error when trying to add tags
--------------------------+-----------------------------
 Reporter:  fanmerch2016  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  critical      |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In this video- https://www.loom.com/share/6671fc834c624e37940ba9ecf0398389
 you can see that, even with all plugins deactivated and with a default
 theme, there is an error whenever we tried to add a new tag. As you can
 see in the video, there is a 400 server error related to the WordPress
 API.

 Maybe it is showing due to - WordPress API error when trying to add tags
 that already exist to a existing post or within site.

 I’ve run into an error in the browser console whenever I try to add tags
 (that already exist on the site) to a post. I’ve managed to reproduce this
 on a completely new site.

 To reproduce this, please try the following steps:
 1) Create a few tags (around 5-6) under Posts > Tags.
 2) Create a new post.
 3) With the browser console open, start adding your tags to the new post.
 4) You should see a 400 Bad Request error for /wp-
 json/wp/v2/tags?_locale=user

 I was able to reproduce this error on a completely new WordPress 6.0.1
 install.
 We then tried to reproduce this issue on a completely new WordPress
 installation with no plugins and we managed to reproduce this problem. It
 looks like this is a problem in WordPress core and not in a plugin. The
 error seems to be triggered only when you try to add a tag that already
 exists on the site.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56410>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list