Skip to content
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

My Parent Pages Are Still Missing In Gutenberg #9441

Closed
Janatomy opened this issue Aug 29, 2018 · 56 comments · Fixed by #25267
Closed

My Parent Pages Are Still Missing In Gutenberg #9441

Janatomy opened this issue Aug 29, 2018 · 56 comments · Fixed by #25267
Assignees
Labels
[Feature] Document Settings Document settings experience [Type] Bug An existing feature does not function as intended [Type] Performance Related to performance efforts

Comments

@Janatomy
Copy link

My parent categories are still not displaying when I am building a page using Gutenberg. When I switch to the Classic Editor, the categories are all there.

I read on a few closed threads that this particular issue would be fixed with the next Gutenberg update (3.0 I believe), which seemed as if that was suppose to be sometime last week. I have deactivated and reinstalled my plug-ins, including Gutenberg, but I am still having the same issue.

When can I expect to see this issue resolved?

@youknowriad
Copy link
Contributor

youknowriad commented Aug 29, 2018

Do you have a security plugin on your website? Do you Cloudflare?
It can also be a "plugin incompatibility", so you might want to try disabling plugins to find the conflicting one.

Can you check the JavaScript console for potential errors? If you're familiar with the network tab in the dev tools, can you check the response of the request fetching the categories?

@youknowriad youknowriad added the [Status] Needs More Info Follow-up required in order to be actionable. label Aug 29, 2018
@designsimply
Copy link
Member

Noting there's an example of a plugin conflict with iThemes Security at #8763.

I tested with WordPress 4.9.8 and Gutenberg 5a630c2 (3.7-beta) just now and I am able to see parent categories in Settings (gear icon) > Document when creating a new post.

@Janatomy
Copy link
Author

Janatomy commented Sep 4, 2018

Sorry for the delay in responding.

We do have an anti-spam plugin. I have deactivated each plugin, including Gutenberg. The categories only appear when I am using the Classic Editor. I am not familiar with the network tab, but I guess there's no better time than now to become familiar with it.

@Janatomy
Copy link
Author

Janatomy commented Sep 4, 2018

screenshot 60

This is what I am seeing when creating a page in Gutenberg

@youknowriad
Copy link
Contributor

The screenshot is showing the "pages" and not the "posts". I think pages don't support categories by default right?

@youknowriad
Copy link
Contributor

I guess you're referring to the "parent page" selector.

@Janatomy
Copy link
Author

Janatomy commented Sep 4, 2018

I've always created pages (with the Classic Editor, of course).

Yes - I am referring to the "Parent Page" selector. I have well over 100 categories that I've used to build pages and I definitely don't want to lose them

@youknowriad
Copy link
Contributor

I can confirm that I personally see the parent page selector, It would be great if you can look for the API request retrieving the pages in the network tab of your browser's console and see what's wrong (what content it returns).

@Janatomy
Copy link
Author

Janatomy commented Sep 4, 2018

Okay- I am not that familiar with the network tab. Can you give me a bit more direction, or is there another thread that you know of that can guide me through it?

@Janatomy
Copy link
Author

Janatomy commented Sep 4, 2018

I just remembered this was mentioned in the above comments: "Gutenberg 5a630c2 (3.7-beta)", I will look through it to see if it will help.

@danielbachhuber
Copy link
Member

@Janatomy Were you able to sort this out?

@Janatomy
Copy link
Author

@danielbachhuber - not yet. Actually just getting a chance to sit and look more into it now.

@Janatomy
Copy link
Author

These are the two errors that were flagged. Guidance anyone? I am new to this so any help is appreciated.

screenshot 63

@danielbachhuber
Copy link
Member

@Janatomy It looks like this is your specific problem:

image

How many pages do you have in total?

Related #6694

@Janatomy
Copy link
Author

I know for sure it's over 200 pages (that includes both parent and subpages)

@danielbachhuber
Copy link
Member

@Janatomy Can you provide a specific count? Here's where you can reference it:

image

Also, it would be great if you could switch to the "Network" tab in Chrome Developer tools, find the specific failed API request, and share the full contents of the response. Here's what that looks like on my site:

image

@Janatomy
Copy link
Author

Sorry...I had already logged out when answering your last question - I have 416 pages total

@danielbachhuber
Copy link
Member

I have 416 pages total

Ok, thanks for that.

Can you switch to the "Network" tab in Chrome Developer tools, find the specific failed API request, and share the full contents of the response?

@Janatomy
Copy link
Author

screenshot 67

@danielbachhuber
Copy link
Member

@Janatomy Thanks. Can you look at your PHP error logs to see if there are any relevant details?

@Janatomy
Copy link
Author

I came across this while looking through the plugin editor. Is this missing something, causing it not to pull my categories/attributes that are all in the classic editor?
screenshot 69

@Janatomy
Copy link
Author

I am just now getting back to looking into this. I clicked on the link next to the error message that was noted as being the problem above and this is what it says:

{"code":"rest_forbidden_per_page","message":"Sorry, you are not allowed make unbounded queries.","data":{"status":401}}

@Janatomy
Copy link
Author

Janatomy commented Oct 23, 2018

This is the specific line that it takes me to showing the error (status 500).

screenshot 76

@WordPress WordPress deleted a comment from catkiinson Oct 30, 2018
@amoree97
Copy link

amoree97 commented Oct 30, 2018

I am having the same issues with not seeing my categories and my tags are not sticking. I am NOT a fan of Gutenberg.

I do not have security settings that I know of. Also, I do not have plugins, as I am on wordpress.com, not .org

@designsimply designsimply changed the title My Parent Categories Are Still Missing In Gutenberg My Parent Pages Are Still Missing In Gutenberg Nov 29, 2018
@designsimply
Copy link
Member

designsimply commented Nov 29, 2018

I tested with the following steps using WordPress 4.9.8 and Gutenberg 4.5.1:

  1. Log in as an administrator.
  2. Go to Pages and confirm there is at least 1 or more published pages.
  3. Go to Pages > Add New.
  4. Go to Settings > Document > Page Attributes.
  5. Check to see if the "Parent Page" option is present.

Result: I can see the option for Parent Page in the document settings sidebar for a site running Gutenberg 4.5.1 with no other plugins.

screen shot 2018-11-29 at 3 35 44 pm
Seen at https://tan-otter.jurassic.ninja/wp-admin/post-new.php?post_type=page running WordPress 4.9.8 and Gutenberg 4.5.1 using Firefox 63.0.3 on macOS 10.13.6.

@Janatomy are you able to update to the latest version of Gutenberg (currently 4.5.1) and test again?

Yes - I am referring to the "Parent Page" selector. I have well over 100 categories that I've used to build pages and I definitely don't want to lose them

Pages are not allowed to have categories in WordPress by default. Are you saying categories when you mean parent page or are you perhaps using a theme which has made some modifications to allow categories?

To confirm, the problem persists for you if you deactivate all other plugins except Gutenberg?

May I ask what theme you are using for reference?

@designsimply
Copy link
Member

@amoree97 I'm really sorry to hear about your troubles! Because Gutenberg on WordPress.com has received some recent updates, may I ask you to try testing categories and tags again and report it to WordPress.com support if you're still having problems? I tested adding categories and tags to a new post on a WordPress.com site just now and was able to do so without any problems. I also made sure I was able to set parent categories for posts and parent pages for pages. I tested using a free site without any plan. To contact WordPress support, first log in at https://wordpress.com/ and then go to https://wordpress.com/help/contact — it will help them to know some steps you're taking right before you see the problem, the full URL of the page where you're testing, and any other relevant details you can think of such as if you've more than several hundred categories or tags saved on your site.

@amoree97
Copy link

amoree97 commented Nov 30, 2018 via email

@kraftbj
Copy link

kraftbj commented Feb 22, 2019

I spent a bit more time with this and figured it out. The site I'm working with has 2400+ pages and I was looking too quickly. It appears that Gutenberg makes multiple requests to the API until all of the pages are returned, limiting each call to 100 items.

After the 25th API request to the pages endpoint was returned, the editor displayed the Parent Page selector for me.

Theory: The page selector is actually working, but for sites with a high number of pages (and/or a site where the API is returning relatively slow), it takes so long to render it feels broken.

In my use case, the first thing I wanted to do when starting a new page was set the parent before I forgot. For the API, it took about 2500ms for each response and at 25 responses, that was over a minute before all of the items were returned and the selector was rendered.

Suggestion: If verified, what about some type of loading indicator if nothing else?

@designsimply designsimply added [Type] Bug An existing feature does not function as intended [Feature] Document Settings Document settings experience and removed Needs Testing Needs further testing to be confirmed. [Status] Needs More Info Follow-up required in order to be actionable. labels Feb 22, 2019
@bobbingwide
Copy link
Contributor

@kraftbj Brandon, see #13618

@ghost
Copy link

ghost commented Apr 15, 2019

The parent page dropdown still isn't appearing, using the latest versions... why hasn't this been fixed yet?

@designsimply
Copy link
Member

@leecollings it is not happening for all sites and that is one reason why something might be lower in priority over something else. Issues that appear to only apply to some sites or that are difficult to reproduce can take longer than others. It also depends a lot on what else is ahead of it in the queue. For cases like this, it's helpful to note the details of your case when you add a reply. For example, noting the total number of pages on a site you are working with where you can see the problem happen.

@Clorith
Copy link
Member

Clorith commented May 30, 2019

I'm wondering if loading in all the pages is really the way to go here, or if loading in the X most recent ones and adding a typeahead like search would be a better experience?

@bobbingwide
Copy link
Contributor

I'm wondering if loading in all the pages is really the way to go here, or if loading in the X most recent ones and adding a typeahead like search would be a better experience?

The problem is the way the request is being performed. See #13618.

  • The browser doesn't need the content nor the excerpt of every page in order to display the page tree. - - But the server processing is being asked to produce this.
  • And for some content it can take a long time to produce the output.
  • This can lead to a 500 internal error when the processing is killed due to the elapsed execution time being exceeded.
  • increasing the number of pages being loaded per request will only make the problem worse.

Quick edit and the Classic editor have absolutely no problems in listing the pages.
The REST request needs to be changed.

@benfruch
Copy link

Hello,
I have the same issue. I have more than 2300 pages and I end up having a 503 error during the 12th request of 100 pages after a few minutes.
When I'm on All Pages, I don't have any problem to get the list of parents.
It would be nice to change the REST request that load way too much data.

@adamsilverstein
Copy link
Member

When we have a large number of pages, we can use an accessible autocomplete component to enable search/selecting. See #7385 where work is ongoing to solve a similar issue with the post author selector for sites with many users.

@MohammadAlBanna
Copy link

It's almost one year ago since this issue is opened but it's still there! Our website has more than 300+ pages and not all pages are listed (even after waiting times). What makes this worse is if we updated a child page with a parent page, the URL will be changed and the value of parent_page in the database will be set 0.

@adamsilverstein
Copy link
Member

I started work on implementing an accessible-autocomplete for sites with a large number of pages in #16666.

@CalebWoodbridge
Copy link

I have this problem on my WordPress site, which is a University website with thousands of pages. I get a 500 error after around 3 minutes and 50+ pages of calls to the REST API. I can see that the full post data (including content) is being returned, which seems very inefficient.

@unprintedch
Copy link

unprintedch commented Nov 18, 2019

I had this problem too, in french and and the accents "ê, é, è etc..." seems to be the reason why my page did not show up in the attribute >> parent

Hope it helps

@pnrma
Copy link

pnrma commented Mar 3, 2020

I also have this problem but luckily it works using quick modification.
Hoping that @adamsilverstein work will soon be integrated.

I started work on implementing an accessible-autocomplete for sites with a large number of pages in #16666.

Thank you for your work to resolve this bug.

@maowebsolutions
Copy link

I was having the same issue seeing the parent selector. I installed this plugin (Disable Gutenberg) and it fixed it.

@pnrma
Copy link

pnrma commented May 26, 2020 via email

@stmarytx
Copy link

@pnrma - that would be a great solution, not requiring all Pages to be queried on page load, but still allowing editors to search for and find any Page they need to select.

@maowebsolutions - hopefully that may help others, but disabling the Block Editor isn't a solution for me. I'm taking advantage of a number of blocks and finding it frustrating that Classic Editor functionality has been lost rather than added to in this case.

@pnrma
Copy link

pnrma commented May 26, 2020 via email

@stmarytx
Copy link

For others who may find this issue, a temporary fix is to apply a filter that forces the REST API to pull more Pages: https://wordpress.org/support/topic/how-to-filter-parent-page-posts_per_page-value-in-gutenberg-editor/#post-12871582

@pnrma
Copy link

pnrma commented May 26, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Document Settings Document settings experience [Type] Bug An existing feature does not function as intended [Type] Performance Related to performance efforts
Projects
None yet