Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg 16.9/CoBlocks/ETK conflict: "The page-patterns plugin has encountered an error" #83654

Open
liviopv opened this issue Oct 30, 2023 · 17 comments
Assignees
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". Editing Toolkit For issues and PRs that affect the Editing Toolkit plugin [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Managed Plugins & Themes Plugins and themes controlled by Automattic for Atomic sites. [Feature] Post/Page Editor The editor for editing posts and pages. [Interaction #] > 10 (Automated) interaction count label for better visibility. Please don't add these manualliy. [Platform] Atomic [Pri] Normal [Product] WordPress.com All features accessible on and related to WordPress.com. Triaged To be used when issues have been triaged. [Type] Bug

Comments

@liviopv
Copy link

liviopv commented Oct 30, 2023

Quick summary

After Gutenberg 16.9, Atomic sites are experiencing a bug where ETK's pattern selection modal will not display when creating a new page, triggering a The "page-patterns" plugin has encountered an error and cannot be rendered. error message.

It only happens when the 3 plugins are active: Gutenberg, CoBlocks, ETK. Disabling either one of the makes the error go away:

CleanShot 2023-10-30 at 15 22 42@2x

Steps to reproduce

  1. On an Atomic site, activate Gutenberg 16.9, WordPress.com Editing Toolkit, CoBlocks
  2. Go to Pages > Add new
  3. The pattern selector modal will not load and "The page-patterns plugin has encountered an error" will be shown at the top of the editor canvas.

What you expected to happen

The pattern selection modal should load correctly when loading new pages if ETK is active, no matter what other plugins are active.

What actually happened

The "page-patterns" plugin has encountered an error and cannot be rendered.

Impact

Some (< 50%)

Available workarounds?

Yes, difficult to implement

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Chrome 118, Mac Sonoma
Gutenberg 16.9
CoBlocks 3.1.4
ETK 4.2070

@liviopv liviopv added [Type] Bug [Feature] Post/Page Editor The editor for editing posts and pages. Needs triage Ticket needs to be triaged [Product] WordPress.com All features accessible on and related to WordPress.com. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. labels Oct 30, 2023
@cuemarie
Copy link

📌 REPRODUCTION RESULTS

  • Tested on Atomic – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO
Replicated as described. My browser console shows the following error:

Source map error: Error: request failed with status 404
Resource URL: https://atbugtesting.work/wp-content/plugins/full-site-editing/starter-page-templates/dist/starter-page-templates.min.js?ver=1698692271
Source Map URL: starter-page-templates.min.js.map

📌 ACTIONS

  • Triaged

@cuemarie cuemarie added Editing Toolkit For issues and PRs that affect the Editing Toolkit plugin [Feature] Managed Plugins & Themes Plugins and themes controlled by Automattic for Atomic sites. Triaged To be used when issues have been triaged. and removed Needs triage Ticket needs to be triaged labels Oct 30, 2023
@Gustavo-Hilario
Copy link

More reports here:

  • 7310862-zen
  • 7297135-zen

Copy link

github-actions bot commented Nov 14, 2023

Support References

This comment is automatically generated. Please do not edit it.

  • 7310862-zen
  • 7297135-zen
  • 7251943-zen
  • 7341396-zen
  • 7341532-zen
  • 7360857-zen
  • 7378575-zen
  • 7551741-zen
  • 8590650-zen
  • 8597032-zen
  • 8597050-zen
  • 8827620-zen
  • 8934305-zen
  • pbxlJb-6ay-p2#comment-3905

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Nov 14, 2023
@silvio-meter
Copy link

Reported here:

  • 7251943-zen

@pauljacobson
Copy link

Al reported here: 7341396-zen with a follow-up here: 7341532-zen

@ariel-maidana
Copy link

7360857-zd-a8c
Deactivating Coblocks solved it.

@janmckell
Copy link

7378575-zd-a8c
Deactivating Coblocks solved it.

@nazilya06
Copy link

7551741-zd-a8c

User reported the same error. They had CoBlocks and ETK active on their site. I have tried deactivating these plugins; however, it affected the appearance of the site.

Installing and activating Gutenberg resolved the issue.

@krutidugade
Copy link

Reported here 8590650-zd-a8c. They didn't have Gutenberg, CoBlocks and ETK active. Installing and activating Gutenberg solved the issue.

@hanananah
Copy link
Collaborator

8597032-zen

CoBlocks, Gutenberg, and ETK were inactive on the site. Activating Gutenberg did not resolve the issue. Activating ETK resolved the issue, even with Gutenberg inactive.

@hanananah
Copy link
Collaborator

8597050-zen

Gutenberg was active on the site, but CoBlocks and ETK were inactive. Activating ETK resolved the issue.

@github-actions github-actions bot added the [Interaction #] > 10 (Automated) interaction count label for better visibility. Please don't add these manualliy. label Aug 11, 2024
@donalirl
Copy link

donalirl commented Oct 6, 2024

#8827620-zen
Gutenberg plugin active, no Coblocks or ETK.

@davemart-in
Copy link
Contributor

@obenland what do we want to do with this one? I don't think we support Coblocks anymore, but it looks like if people have Gutenberg enabled without ETK it creates issues. This seems to be on-going, but doesn't seem to affect a lot of customers.

I bring this up with you because I'm not sure it will be resolved by anyone on groundskeeper rotation.

@desnum
Copy link

desnum commented Oct 24, 2024

Here's a case where the message showed up on a simple (no plugins) site: 8934305-zd

@obenland
Copy link
Member

@Copons @dsas Could T-Rex take a look at this issue?

@dsas
Copy link
Contributor

dsas commented Oct 24, 2024

I'll take a look.

Given that ETK has been completely removed (pbxlJb-6ay-p2#comment-3905), I'll assume that reports where this happens without ETK are to be expected, from some of the reports above it's unclear that coblocks is related.

@dsas dsas self-assigned this Oct 24, 2024
@dsas
Copy link
Contributor

dsas commented Oct 24, 2024

The "page-patterns" plugin has encountered an error and cannot be rendered.

This is a very generic message that will occur whenever the plugin breaks in some way. This is quite probably several problems dressed up in a trenchcoat.

It looks as though @arthur791004 might have fixed one of these problems in Automattic/jetpack#38823 on 2024-08-12, which was probably a big cause of reports. We've had two further reports since then though.

The plugin is being developed at https://github.com/Automattic/jetpack/tree/trunk/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". Editing Toolkit For issues and PRs that affect the Editing Toolkit plugin [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Managed Plugins & Themes Plugins and themes controlled by Automattic for Atomic sites. [Feature] Post/Page Editor The editor for editing posts and pages. [Interaction #] > 10 (Automated) interaction count label for better visibility. Please don't add these manualliy. [Platform] Atomic [Pri] Normal [Product] WordPress.com All features accessible on and related to WordPress.com. Triaged To be used when issues have been triaged. [Type] Bug
Projects
Development

No branches or pull requests