-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent error when publishing, after adding tags or categories: "Publishing failed. Error message: Sorry, you are not allowed to assign the provided terms" #36274
Comments
Source of the error message is POST REST API handler in Core. When an API is |
+1 15689980-hc, issue happened when adding tags. |
I was able to reproduce this bug although not consistently. UPDATE: Now I can't reproduce the bug at all. Elusive. |
@donpark Found another case here: 2425866-zen |
@Robertght Sorry but I no longer work for A8C. |
Seems to be another report in 16975579-hc |
Encountered this while adding tags to a portfolio project: 17282693-hc & 2557371-zen |
Not intermittent for me happens when publishing a one-word tag like 19989830-hc & 2847839-zd |
Another report in 22914939hc |
Another report in #24119597-hc, though the cause is unclear |
Another report here: 24133818-hc - I have asked the user if they notice this happen with specific tags/categories, so I can try and reproduce. |
Another report here: https://wordpress.com/forums/topic/saving-my-post-3/ |
New report of this issue in 24409620-hc |
Another one in 24502294-hc |
The issue occurred when scheduling as well - 24031031-hc |
Another one 24570082-hc |
Another report in 3510459-zen |
A customer reported this on Safari on iPad in 156380-hc |
A newer report appears to have been opened that seems related: #45758 If it's the same, we can probably close that one in favor of this one and copy over relevant info there. |
Moving to prioritized backlog. |
#3638164-zen |
27037033-hc |
3642645-zen |
3677729-zen |
Another report on https://wordpress.com/forums/topic/updating-failed-message-2/. |
Reported in #13954900-hc |
@jeyip sure! I'm unable to reproduce it but I did some digging on the After retrieving the taxonomies names, we check if the current user has permission to assign them to the post. This happens here, with the The
Next steps
|
@fernmed would it be possible to follow up with the user here to ask if we can try to reproduce the error on their site? I think this would involve making an update on a post, or maybe creating a draft would suffice... @jeyip is this correct? |
This is correct! It would be great if we can get some data from the Dev Tools console & network tabs. This helps us to narrow down the issue. |
I made the request with the user for further testing. 3794477-zd |
Another report at 3781308-zen |
We have a job that tries to save a post as a draft via API and suffers from this frequently. If we just have a diff that adds logging in all the possible places where this might go wrong, we could try to capture what happens. Discussed p1615189993041800-slack-dotcom and especially p1615196213117200-slack-create-gardeners |
Great suggestion! I'm in the process of setting up a diff now, but it will definitely need a few extra set of eyes for code review. It'll be my first time using our logging platform and I also want to make sure we're capturing all possible spots this error might be manifesting. |
Steps to Reproduce
Video: assigned-terms-bug-Peek.2021-03-10.15-53.mp4Technical Details
Stack Trace
Proposed FixesNone at this time; I'm currently unsure the best way to fix this, but at least I do have a good handle on what's going on. I would first like to determine if the bug is happening on .org multisite with no .com specific code before deciding on an approach. Followup Resources
|
Update: |
Encountered in #27098180-hc. They initially got the error but were able to publish it the second time. There are no categories or tags assigned to the post right now. |
Another report 3791219-zen. |
I have not found a way to recreate the bug on dotorg multisite, both before and after forcing Edit: I have tracked it down a .com specific plugin. Followup Resources
|
Got it in 28348375-hc. Trying twice didn't work, so I had them publish without tags or categories (success!) and then add the tags and categories after. |
Issue reproduced during my Steps I took:
Post link: https://e2eflowtesting2021031201gardening4.wordpress.com/2021/03/12/retro-cameras-galore/ |
D58727-code under review. |
D58727-code has been shipped. Hopefully this addresses the issue 🤞 |
@david-binda I just got another report of this happening in 28628867-hc. User says they entered a bunch of tags and wasn't able to save their draft. They said they added 17 or so tags. Reducing the number allowed them to save. Site is https://photoferret1.com/ |
@druesome my understanding of this issue is that it was WPCOM specific, due to it's multisite nature and global tags turned on (+some custom logic in a mu-plugin). https://photoferret1.com/ is hosted on Atomic, so the issue is likely different. |
@druesome do you know if they got the error given by the OP? If not, a new issue would be best. |
I'm going to close this again – @druesome if there's still an issue, feel free to reopen if the user got the same error, otherwise a new issue would be better. 👍 |
@kwight - I've got an atomic site in chat seeing the same error when adding a tag to posts in 27939677-hc. Happens with just a single tag, and I can replicate in a support session as well. |
It looks like the additional reports are specific to Atomic; I'm closing this issue, and we can follow up further in #51640. |
I ran into this error in 15468043-hc today. Upon researching it, I found no existing reports, but I did find many Zendesk tickets, all dated from mid-July up until now, where the error was mentioned (all with no resolution):
2281003-zen, 2375861-zen, 2186010-zen, 2336103-zen, 2183102-zen, 2352755-zen, 2243803-zen, 2311951-zen, 2333250-zen, 2161172-zen
As far as I know, these are all simple sites.
The error appears across the top of the editor and looks like this: https://cld.wthms.co/bZ9Rrb
For the tickets where the user was specific enough, the common thread is that they had added a category or tag to the post before trying to publish it. In my chat today, the issue was having added a tag. The post could be published fine without that tag added, but once the tag was added, it could not be published.
As a workaround, the tag could be added via quick edit in wp-admin.
It does not appear to be a browser issue, as I could replicate the issue myself in a support session for the user in chat today, and the issue persisted across multiple browsers (Chrome and Firefox) for that user.
I also found this when researching the error message - https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
Any idea what might be causing this?
The text was updated successfully, but these errors were encountered: