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
Loss of categories #8609
Comments
Hi there! Do you have any security plugins block API endpoints? Gutenberg rely on the REST API, so any plugin altering the endpoints could alter Gutenberg usage. Similar issue #6942 |
Hi, MacOs 10.13.6 |
@tahsinkandamar do you have CloudFlare enabled? Security plugins? |
I wasn't seeing categories or tags and then I disabled my security and they showed back up. Is there a way around getting them to show without losing my security? |
@rita3130 Make sure your security plugin doesn't disable or alter REST API endpoints. Most plugins have those options there. |
@youknowriad Thank you. Changing that brought them right back for me. |
I'm going to close this issue now as it's more likely one of the reasons above:
Let's reopen if we find different causes. Thanks. |
I am encountering this same issue, working on a localhost install with Twenty Seventeen, Gutenberg as the only active plugin, and running trunk. Windows 10.0.17134.228 Have checked a REST endpoint and it comes up fine, but I have no categories or tags in Gutenberg (two different machines). |
@robincornett Can you check in Chrome's Dev Tools the XHR requests triggered once you open the sidebar in Gutenberg (and their responses?) |
@youknowriad, here is what I have--I hope it is what you wanted:
The categories returned in the next to last request are the correct ones on my localhost (I have no tags). I don't know if it might be related, but I am also not able to actually publish posts in Gutenberg, only "Submit for Review". On this site, there is only the one admin user. If I edit a previously published post in Gutenberg, I have to submit it for review as well, and have to publish from the Quick Edit menu. I mention this here (have not yet submitted a ticket) in case Gutenberg is possibly misreading my capabilities and messing with terms and publishing as a result? |
Can you grab the output of this from your console:
|
I expect I am not doing it correctly; when I try to run that, I get:
I am running it directly from the console in Dev Tools and also as a snippet. Where should I put it instead? |
oups sorry
|
|
It looks like the post object is missing some required flags to make Gutenberg work properly. I can't see the |
What role is the user that's making the request? Also, user capabilities are stored in the database. If you've modified them in the past, but then deactivated whatever plugin you used to modify them, the changes will remain. Can you use WP-CLI to reset roles? |
I think this is the root of the problem: something about your user capabilities are misconfigured. |
There were capabilities left over from WooCommerce. I installed wp-cli and ran One unusual thing about my setup locally is that I have an alternative So I downloaded and installed a fresh install of WP 4.9.8, and checked Gutenberg there using both a unique content directory and then switched it over to use the common one. Gutenberg worked fine in both situations. I wondered if it was an issue with trunk, so I switched my first site back to the 4.9 branch, and Gutenberg is still broken there. At this point, I guess it is unique to the one site on this machine, but I am experiencing the issue on my other machine as well. The only user on this site is an administrator role. |
Note: both of the affected sites are running trunk from GH and using the new |
Update: I don't think the categories/tags issue and the "Submit for Review" issue are related after all. Another user is experiencing the latter, but not the former (mentioned on Twitter). Also, I ran a |
This is happening to me as well. See davidperegar's screen shot. Also the featured image is also missing. |
When creating or editing a new post, the categories are not listed in the sidebar
There is also no longer the top tab to choose the screen options.
MacOS 10.13.6
Google Chrome 67.0.3396.99
Wordpress 4.9.8 (pt_BR)
Gutenberg 3.4.0
The text was updated successfully, but these errors were encountered: