Codeinwp / Codeinwp/otter-blocks
Otter Blocks crashes Gutenberg editor with ownerDocument error
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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