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

Table of Contents: Preventing Editing Rest of Post #56283

Open
PhilosophyIsMyJam opened this issue Nov 18, 2023 · 5 comments
Open

Table of Contents: Preventing Editing Rest of Post #56283

PhilosophyIsMyJam opened this issue Nov 18, 2023 · 5 comments
Labels
[Block] Table of contents (experimental) Affects the Table of contents Block Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended

Comments

@PhilosophyIsMyJam
Copy link

Description

I have put the list of contents block in all of the blog posts. However, when I click on the blog post to go back and edit, the editor never loads and I can't access the post. I received a RangeError: Maximum call stack size exceeded on one of the attempts of trying to load the blog page and listed the gutenberg plugin. I uninstalled the gutenberg plugin and only then was I able to access the blog post again. I also removed the list of contents block from the blog post and reactivated gutenberg and I could also then access the blog post editor again. The list of contents block seems to be working fine on the published website itself.

Full error message
RangeError: Maximum call stack size exceeded
at J (https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/editor/index.min.js?ver=8e21285a2dad98a45044:1:30902)
at ke (https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/editor/index.min.js?ver=8e21285a2dad98a45044:1:34659)
at we (https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/editor/index.min.js?ver=8e21285a2dad98a45044:1:34479)
at Object.r [as getPermalink] (https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/data/index.min.js?ver=0f51809e66c3f62da1c5:1:17222)
at https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/block-library/index.min.js?ver=ff0fcb5dc4a5b8505419:123:40562
at https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/block-library/index.min.js?ver=ff0fcb5dc4a5b8505419:123:41313
at https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/block-library/index.min.js?ver=ff0fcb5dc4a5b8505419:123:41363
at https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/data/index.min.js?ver=0f51809e66c3f62da1c5:1:20272
at Array.forEach ()
at n (https://philosopheradabsurdum.com/wp-content/plugins/gutenberg/build/data/index.min.js?ver=0f51809e66c3f62da1c5:1:20260)

Step-by-step reproduction instructions

  1. Create a 2,000 word blog post.
  2. Insert a list of contents button.
  3. Publish post
  4. Attempt to reenter editor.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@PhilosophyIsMyJam PhilosophyIsMyJam added the [Type] Bug An existing feature does not function as intended label Nov 18, 2023
@Mamaduka Mamaduka added the [Status] Needs More Info Follow-up required in order to be actionable. label Nov 18, 2023
@Mamaduka
Copy link
Member

Hi, @PhilosophyIsMyJam

Do you mean the Table of Contents block?

A few additional questions:

  • What version of the Gutenberg plugin are you using?
  • On average, How many heading blocks are in 2000-word blog posts?

@PhilosophyIsMyJam
Copy link
Author

Version 17.0.2

Usually 8-15 headings

@jordesign jordesign added Needs Testing Needs further testing to be confirmed. [Block] Table of contents (experimental) Affects the Table of contents Block labels Nov 19, 2023
Copy link

github-actions bot commented Dec 5, 2023

Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks.

@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Dec 5, 2023
@Mamaduka Mamaduka removed [Status] Needs More Info Follow-up required in order to be actionable. [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. labels Dec 26, 2023
@jordesign jordesign changed the title Contents Block Preventing Editing Rest of Post Table of Contents: Preventing Editing Rest of Post Jan 4, 2024
Copy link

github-actions bot commented Feb 4, 2024

Hi,
This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.

@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Feb 4, 2024
@Mamaduka Mamaduka removed the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Feb 4, 2024
@stacimc
Copy link
Contributor

stacimc commented Jul 10, 2024

I tried to reproduce this on v18.7.1 but was unable. I tested up to ~5000 words and 70 headings, with headings maximally nested. I am able to add the Table of Contents block, publish, and return to edit the post with no errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Table of contents (experimental) Affects the Table of contents Block Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants