Codeinwp / Codeinwp/otter-blocks

Otter Blocks crashes Gutenberg editor with ownerDocument error

Open
#3,059 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
198
Forks
36
Avg merge
3d 4h
Merged PRs (30d)
30

Description

Description

I'm experiencing a reproducible Gutenberg editor crash whenever Otter Blocks is active.

Error:
TypeError: Cannot read properties of null (reading 'ownerDocument')

The stack trace is:

compose.min.js → rich-text.min.js → Array.map()

Environment:

WordPress 7.1
Otter Blocks 3.2.5
Neve 4.2.11
No Otter Pro

Could you investigate whether Otter is registering an editor component, Rich Text extension, or DOM/document reference that is incompatible with the current Gutenberg editor environment?

Step-by-step reproduction instructions

Troubleshooting performed:

Deactivating Otter Blocks → Gutenberg editor works
Activating Otter Blocks → editor crashes
WordPress Troubleshooting Mode with only Otter Blocks active → editor still crashes
Neve theme → editor crashes
Twenty Twenty-Six theme → editor crashes
WordPress 7.1 → editor crashes
WordPress 7.0.x → editor crashes
Otter 3.2.5 → editor crashes
Otter 3.2.3 → editor crashes
Creating a completely blank new page → editor crashes immediately
Existing page content is therefore not required to reproduce the issue

This appears to be an Otter Blocks editor initialization issue rather than a page-specific block, theme, or plugin conflict.

Screenshots, screen recording, code snippet or Help Scout ticket

The complete browser console error is:

TypeError: Cannot read properties of null (reading 'ownerDocument')

at compose.min.js
at rich-text.min.js
at Array.map
at compose.min.js

Environment info

No response

Is the issue you are reporting a regression

No

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash in a blank Gutenberg page with only Otter Blocks active, then inspect the browser stack involving compose.min.js, rich-text.min.js, and Array.map(). Compare behavior with Otter deactivated and the listed WordPress versions. Done means the editor loads without the ownerDocument error while Otter Blocks remains active.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.