Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
big_pipe.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2024 at 04:51 UTC
Updated:
20 Feb 2024 at 21:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gauravvvv commentedComment #4
gauravvvv commentedComment #5
prashant.cThanks for raising and the fix @Gauravvvv. Yes, I am also able to reproduce this issue, however this JS error appears on every content type not specifically on "Basic page" only.
Added comments in the MR.
Thank you.
Comment #6
cilefen commentedIs this reproducible on a clean install?
Comment #7
prashant.c@cilefen Yes, at-least I got this error on clean 11.x install.
Comment #8
smustgrave commentedIssue summary is incomplete
Will need steps to reproduce + tests.
Comment #9
casey commentedStatic patch file of MR up until #4 for use with composer-patches
Comment #10
jox commentedI'm getting this error also when editing a node e.g. at
/node/16/edit. The patch fixes it there as well.Comment #11
rajab natshahFacing the same issue with Drupal
10.2.1Patch #9 fixed the issue
Comment #12
rajab natshahComment #13
rajab natshahComment #14
mauzilla commentedGetting the same error in Drupal 10.2 - Seems to affect all admin pages
Comment #15
jennypanighetti commentedPatch #9 seems to have fixed it for my admin pages as well - 10.2.1 and 10.2.2
Comment #17
hardik_patel_12 commentedComment #18
hardik_patel_12 commentedComment #19
hardik_patel_12 commentedReturning to "needs work" as a test is required.
Comment #20
gerzenstl commentedI can confirm the MR #6057 works.
I tested on Drupal 10.2.1
Comment #22
vakulrai commentedRe-rolled patch as its reproducible for 11.x branch and for the tests as the errors are more due to the JS mutation observer is missing a check and the error in the console cant be tracked in the Tests so can anyone suggest a way to have a test coverage here Else we can move this ticket forward.
Thanks!
Comment #23
albeorte commentedI have tested the added changes and they work correctly! RTBC
I add the new changes in file.patch format
Comment #24
albeorte commentedComment #25
acbramley commentedMarked #3417672: big_pipe JS checkMutation can throw type errors if parentNode is NULL as a duplicate. This still needs tests. Please keep work in the MR, patches are not required here.
Comment #26
herved commentedI'm seeing this on Drupal 10.2.3 as well, issue #3390178: big_pipe sometimes fails to load blocks got included in 10.2.1 so I guess it makes sense.
The error is almost on all pages for me. It seems one of my browser extensions (Scraper 1.7, on brave, which I now disabled as I'm not using it) is causing DOM mutations on the body element, which triggers this.
big_pipe needs to be more resilient. The MR fixes it.
I'll add a static diff patch of it (latest commit 6580c866), for composer, in case anyone else needs it.
Comment #27
acbramley commentedThis has been fixed in #3416141: big_pipe.js' checkMutation() does not check if node exists before using it