Hello,
We are using the Page Builder and Site Origin Widgets bundle plugins along with our own custom widgets. We’ve used this setup for years without any issues.
Since a few plugin releases ago whenever we have save a widget with a link in it, on reload you will see the message “this block contains unexpected or invalid content” with an “Attempt Block Recovery” button.
This button works, but you must click it every time the edit page is loaded.
This does not happen with Page Builder version 2.16.15. However, after rolling back the plugin version you must export the site origin layout from the page, delete the site origin layout block, make a new one, and import the layout. Then you won’t see the error on every load.
Looking around I see that this issue in relation to links has occurred in the past, I think the bug came back in the last few versions of this plugin.
The console error starts with:
“blocks.min.js?ver=658a51e7220626e26a92a46af5c2e489:3 Block validation: Block validation failed for `siteorigin-panels/layout-block`” and then “Content generated by `save` function:” with all the HTML of the widget
Thanks for your help!
Corey
Hi Corey,
By link, does this issue occur if it’s any link (such as https://example.com/) or is a specific link required? Can you please provide me with a copy of the export you’re importing so I can run some tests using it? Please upload the export to a 3rd party file hosting site such as WeTransfer (no email is required).
As far as I can see, there haven’t been any adjustments to the Block Editor specific code since 2.16.15 so it’s not clear what could have resulted in this issue. Did you happen to intentionally revert to that version, or was 2.16.15 by chance? I ask because I want to confirm if this issue started in 2.16.16 for you.
Kind regards,
Alex