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

The Editor shows TypeError: Cannot read properties of null (reading 'toString') when Gutenberg is active #97528

Open
RafaelFunchal opened this issue Dec 16, 2024 · 0 comments
Labels
[Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Post/Page Editor The editor for editing posts and pages. Needs triage Ticket needs to be triaged [Pri] Low Address when resources are available. [Product] WordPress.com All features accessible on and related to WordPress.com. [Type] Bug

Comments

@RafaelFunchal
Copy link
Contributor

Quick summary

Slack ping: p1734361511221669-slack-C03TY6J1A

When Gutenberg is active on the site, it is not possible to edit and create posts and pages.

The Editor shows the modal:

The editor has encountered an unexpected error.

Copying the error reveals these lines:

TypeError: Cannot read properties of null (reading 'toString')
    at https://DOMAIN/wp-content/plugins/gutenberg/build/components/index.min.js?ver=1d11f77954d9898b0db4:94:6274
    at t (https://DOMAIN/wp-content/plugins/gutenberg/build/components/index.min.js?ver=1d11f77954d9898b0db4:1:2840)
    at n (https://DOMAIN/wp-content/plugins/gutenberg/build/components/index.min.js?ver=1d11f77954d9898b0db4:94:9945)
    at t.get (https://DOMAIN/wp-content/plugins/gutenberg/build/components/index.min.js?ver=1d11f77954d9898b0db4:94:10106)
    at t.render (https://DOMAIN/wp-content/plugins/gutenberg/build/components/index.min.js?ver=1d11f77954d9898b0db4:94:18759)
    at kr (https://DOMAIN/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:59358)
    at br (https://DOMAIN/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:59157)
    at js (https://DOMAIN/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:121074)
    at Sl (https://DOMAIN/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88331)
    at kl (https://DOMAIN/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88259)

The domain has been removed for privacy concerns.

We already tried deactivating all plugins and switching to a Core theme.

Steps to reproduce

  1. Go to Posts
  2. Click on Add New Post or on any post to edit.
  3. The error is displayed.

What you expected to happen

To load the editor to create and edit posts.

What actually happened

The editor shows an error:

The editor has encountered an unexpected error.

Impact

One

Available workarounds?

Yes, easy to implement

If the above answer is "Yes...", outline the workaround.

For now, the workaround is to deactivate the Gutenberg plugin.

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

@RafaelFunchal RafaelFunchal added [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Post/Page Editor The editor for editing posts and pages. [Product] WordPress.com All features accessible on and related to WordPress.com. [Type] Bug Needs triage Ticket needs to be triaged labels Dec 16, 2024
@github-actions github-actions bot added the [Pri] Low Address when resources are available. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Post/Page Editor The editor for editing posts and pages. Needs triage Ticket needs to be triaged [Pri] Low Address when resources are available. [Product] WordPress.com All features accessible on and related to WordPress.com. [Type] Bug
Projects
Development

No branches or pull requests

1 participant