[Gutenberg] Uncaught TypeError: Cannot read properties of null (reading 'querySelectorAll')

Created on 16 September 2024, 2 months ago
Updated 20 September 2024, about 2 months ago

Problem/Motivation

When trying to edit a page with Gutenberg installed, Gin tries to render the form actions in a sticky toolbar, but it can't find them (due to Gutenberg's change).

Steps to reproduce

  1. Enable Gin
  2. Enable Gutenberg on a content type
  3. Try creating a new node of content type
  4. Note JavaScript console error

Proposed resolution

Add a sanity check?

Remaining tasks

  1. Decide on solution.
  2. Implement solution.

Error Messages

Uncaught TypeError: Cannot read properties of null (reading 'querySelectorAll')
    at Object.updateFormId (more_actions.js?sjwipo:18:39)
    at more_actions.js?sjwipo:12:14
    at Array.forEach (<anonymous>)
    at Object.init (more_actions.js?sjwipo:11:89)
    at Object.attach (more_actions.js?sjwipo:4:35)
    at drupal.js?v=10.3.5:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.3.5:162:34)
    at big_pipe.js?v=10.3.5:153:10
    at big_pipe.js?v=10.3.5:184:3
🐛 Bug report
Status

Closed: outdated

Component

Code

Created by

🇨🇦Canada Nathan Tsai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024