Closed (fixed)
Project:
Gutenberg
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Mar 2023 at 20:37 UTC
Updated:
26 Sep 2023 at 09:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pawelgorski87 commentedComment #3
pawelgorski87 commentedComment #4
szeidlerI can confirm the problem. It has been introduced in #3328033: Add a UI for disabling custom blocks per content type . It was mentioned there but didn't seem to have gotten fixed.
I would probably move the whole foreach into the prior if condition
if ($custom_settings) {and change that one toif (isset($custom_settings['categories'])) {What do you think?
Comment #5
nishchit.dayal commentedUnable to apply the #2 patch. Adding updated patch.
Comment #6
nishchit.dayal commentedComment #7
hkirsman commented#6 Works for us
Comment #8
kaustab_roy commentedComment #9
kris77 commented#6 works form me too. Thanks @nishchit.dayal
Comment #10
spoof commented#6 works perfectly here too. Thanks !
Comment #11
tyler36 commentedConfirmed patch
#6fixes issue on Drupal10.1.0.## Test
1. Install and enable gutenberg module.
2. Visit "Basic Page edit":
/admin/structure/types/manage/page3. Apply patch
#6.4. Refresh page (cache clear is _not_ required)
Comment #12
tyler36 commentedComment #13
joseph.olstadThanks , we needed the patch from #6 also. Same exact error as illustrated in #11 (see screenshots).
We're using PHP 8.1 , more and more people will need/want the above patch as we move forward people will be running PHP 8.2 and PHP 8.1 , rather than PHP 8.0.
PHP 8.2 is faster, consumes less memory than PHP 8.1
PHP 8.1 is faster, consumes less memory than PHP 8.0
Comment #14
joseph.olstadComment #15
toddwalden commentedHey all, I'm still seeing a page rendering issue after installing Gutenberg in Drupal 10, whether I use the patch or not (also having the same issue if I try installing the previous version of Gutenberg).
The chrome console shows two errors:
Uncaught SyntaxError: Unexpected token ':'Uncaught TypeError: Cannot read properties of undefined (reading 'attach')UPDATE:
Looks like it might not be related Gutenberg specifically, but to Drupal's js aggregation: https://www.drupal.org/project/gutenberg/issues/3372307
Comment #17
szeidlerThis has landed on 8.x-2.x-dev. Thanks for your contributions.