You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@RcTomcat1 I did some quick searching on the origin of this, it looks like this is the result of a change WordPress core. There's some more background in this trac ticket: https://core.trac.wordpress.org/ticket/48568
Summarizing the discussion there, it looks like window.$ was never intended to be exposed, this was the side effect of a bug in a third-party library. The plugin would have been relying on this unsupported behaviour/bug.
I imagine the right thing would be for the plugin to handle defining jquery as its own dependency. Granted there's not much you can do about this as you're not the developer, but perhaps the trac ticket will help in your discussions with the developers.
As there's nothing that can be done in this project, I'll close this issue.
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.
The text was updated successfully, but these errors were encountered: