• Hi MonsterInsights Support,

    I would like to report what appears to be a compatibility issue with MonsterInsights 11.1.2 and the WordPress Gutenberg editor.

    Recently, when I insert a Synced Pattern / reusable pattern into a post, the pattern fails to render and WordPress displays:

    “This block has encountered an error and cannot be previewed.”

    If I then try to detach/ungroup the pattern so that I can edit it independently, the entire pattern content disappears from the editor.

    I checked the browser console and found the following JavaScript error:

    TypeError: ((intermediate value) ?? "").replace is not a function

    The stack trace points to:

    editor.js?ver=11.1.2:7172:60

    I then temporarily deactivated MonsterInsights while leaving GreenShift and the other plugins enabled. After deactivating MonsterInsights:

    • Synced Patterns can be inserted normally
    • The patterns preview correctly
    • Detaching/ungrouping them works normally
    • The error no longer occurs

    Reactivating MonsterInsights causes the problem to return.

    I also have another WordPress website using the same GreenShift plugin where I have not encountered this issue, so this appears to be related specifically to MonsterInsights’ Gutenberg editor integration rather than the pattern itself.

    My environment includes:

    • WordPress: 7.0.4
    • MonsterInsights: 11.1.2
    • GreenShift blocks / reusable patterns
    • Gutenberg block editor

    I have temporarily disabled MonsterInsights, which resolves the issue, but I would prefer to re-enable it once the compatibility problem has been fixed.

    Could you please investigate this issue, particularly the code in editor.js around the .replace() error above?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Michelle D.

    (@devmich)

    Hi @oceanw,

    Thanks for letting us know and for the thorough testing! I’ve forwarded this to our development team to look into further and I’ll share an update once I have one.

    Out of curiosity, does disabling the Headline Analyzer under Insights » Settings » Publisher help work around the issue on your end? That would let you keep MonsterInsights active in the meantime.

    Thank you.

    Thread Starter oceanw

    (@oceanw)

    Hi @devmich,

    Thanks for the response.

    I tried to disable the Headline Analyzer and it works.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.