[wp-trac] [WordPress Trac] #52107: Error when associating a category to a post : "Sorry, you are not allowed to assign the provided terms."

WordPress Trac noreply at wordpress.org
Sat Dec 19 16:09:23 UTC 2020


#52107: Error when associating a category to a post : "Sorry, you are not allowed
to assign the provided terms."
--------------------------+----------------------------------------
 Reporter:  webtechIMT    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  5.6
 Severity:  critical      |  Resolution:
 Keywords:                |     Focuses:  administration, multisite
--------------------------+----------------------------------------
Changes (by SergeyBiryukov):

 * focuses:  administration => administration, multisite
 * component:  General => Taxonomy


Old description:

> Hi,
>
> We use WordPress Multisite 5.6 (387 sites)
>
> Steps to reproduce in a site :
>
>     Create a new category "My category" THEN
>     Create a new tag "My tag" THEN
>     Create a new category with the same name of an existing tag, let's
> say "My tag" THEN
>     Create a new tag with the same name of an existing category, let's
> say "My category"
>
> Now it will break if you do the following:
>
>     Edit the category "My tag" with the name of an existing tag, you'll
> get "You need a higher level of permission. Sorry, you are not allowed to
> edit this item."
>     Edit the tag "My category" with the name of an existing category,
> you'll get "You need a higher level of permission. Sorry, you are not
> allowed to edit this item."
>     Create / edit a content and assign the category "My tag" (with the
> name of an existing tag) or assign the tag "My category" (with the name
> of an existing category) and you'll get a 403 error with the response
>
> The same as described in [https://core.trac.wordpress.org/ticket/46297]
>
> I used the plugin [https://github.com/jjeaton/wp-find-shared-terms] on
> our site where we have this error message and the result is :
>     Splitting all shared terms
>     Process complete!
>     Processed: 42
>     Split: 0
>     Skipped: 42
>     Errors: 0
>
> But the problems remains...
>
> Do you have a solution ?
>
> Best regards,
> Olivier.

New description:

 Hi,

 We use WordPress Multisite 5.6 (387 sites)

 Steps to reproduce in a site :

     Create a new category "My category" THEN
     Create a new tag "My tag" THEN
     Create a new category with the same name of an existing tag, let's say
 "My tag" THEN
     Create a new tag with the same name of an existing category, let's say
 "My category"

 Now it will break if you do the following:

     Edit the category "My tag" with the name of an existing tag, you'll
 get "You need a higher level of permission. Sorry, you are not allowed to
 edit this item."
     Edit the tag "My category" with the name of an existing category,
 you'll get "You need a higher level of permission. Sorry, you are not
 allowed to edit this item."
     Create / edit a content and assign the category "My tag" (with the
 name of an existing tag) or assign the tag "My category" (with the name of
 an existing category) and you'll get a 403 error with the response

 The same as described in #46297.

 I used the plugin [https://github.com/jjeaton/wp-find-shared-terms] on our
 site where we have this error message and the result is :
     Splitting all shared terms
     Process complete!
     Processed: 42
     Split: 0
     Skipped: 42
     Errors: 0

 But the problems remains...

 Do you have a solution ?

 Best regards,
 Olivier.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52107#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list