Skip to content

Block has encountered an error Problem #18947

Closed

Description

Hi,

if we update to wp 5.3 we get a problem with some third party blocks. I am posting here because the original developer of those blocks blames it on gutenberg and does not want to help.....
I do see the problem on their end but i need a solution so maybe someone here is willing and capable of helping me out.

Error:
"This block has encountered an error and cannot be previewed"

Checking the debugging console we get:
TypeError: "$ is undefined"

$ seems to be undefined on a 5.3 system as the following output shows:
On a 5.3 system:
window.$
undefined

on a 5.2.4 system
window.$
n()

Changing $ to jQuery in the js file of the plugin makes the block editable again in the editor but leaves the message Warning: Illegal string offset ‘widgets’ in panels.php on line 976 visible on the published page. So not a real solution here. I don't know enough about gutenberg and how plugins are handled to write a proper fix for this.

Any hint on what i might do to make the plugin work with 5.3?
I would rather not have to redo all my pages before upgrading to 5.3. I will be looking for an alternative for the plugin in the near future but right now i simply don't have the time to redo everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Type] WP Core TicketRequires an upstream change from WordPress. Core Trac ticket should be linked.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions