Description
openedon Dec 5, 2019
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.