wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

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

Open liviopv opened this issue 2 years ago • 13 comments

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 avatar Oct 30 '23 15:10 liviopv

📌 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 avatar Oct 30 '23 20:10 cuemarie

More reports here:

  • [ ] 7310862-zen
  • [ ] 7297135-zen

Gustavo-Hilario avatar Nov 14 '23 14:11 Gustavo-Hilario

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[bot] avatar Nov 14 '23 14:11 github-actions[bot]

Reported here:

  • [ ] 7251943-zen

silvio-meter avatar Nov 15 '23 14:11 silvio-meter

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

pauljacobson avatar Nov 21 '23 15:11 pauljacobson

7360857-zd-a8c Deactivating Coblocks solved it.

ariel-maidana avatar Nov 25 '23 17:11 ariel-maidana

7378575-zd-a8c Deactivating Coblocks solved it.

janmckell avatar Nov 29 '23 08:11 janmckell

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.

nazilya06 avatar Jan 08 '24 16:01 nazilya06

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

krutidugade avatar Aug 09 '24 13:08 krutidugade

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 avatar Aug 11 '24 19:08 hanananah

8597050-zen

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

hanananah avatar Aug 11 '24 20:08 hanananah

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

donalirl avatar Oct 06 '24 04:10 donalirl

@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.

davemart-in avatar Oct 18 '24 18:10 davemart-in

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

desnum avatar Oct 24 '24 14:10 desnum

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

obenland avatar Oct 24 '24 15:10 obenland

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 avatar Oct 24 '24 16:10 dsas

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 https://github.com/Automattic/jetpack/pull/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

dsas avatar Oct 24 '24 16:10 dsas

I've tried reproducing this problem using the two tickets reported since Arthur's fix.

#8827620-zd-a8c

I can't reproduce on this site, I tried using Chrome.

8934305-zd-a8c

I can't reproduce on this site. I tried using Safari as I could see in the screenshot that's what the user used. @desnum also couldn't reproduce while working on the ticket.


As I said yesterday, this is a very generic message that just means page-patterns broke in some way. I don't think we should be prioritising this issue solely based upon the interaction count. A whole bunch of those were almost certainly resolved by Arthur's fix in August.

That said, depending upon how widespread these errors are, they might be logged into Sentry. I'll take a look to see if I can find anything.

dsas avatar Oct 25 '24 10:10 dsas

I can't find anything logged by either of those users, or on either of the two URLs mentioned. This is not unexpected - we only sample some errors afaik. I've had a general poke around Sentry and haven't found anything obviously relevant either.

I'm going to close this bug - not because it's fixed for everyone, but because this bug report doesn't contain anything useful for the people it's not fixed for, and for how many people are still experiencing the problem.

For searchers finding this issue in future, please create a new issue with reproduction steps, feel free to ping me.

dsas avatar Oct 25 '24 11:10 dsas