• Resolved littlebizonline

    (@littlebizonline)


    Hi – we have a site under construction which we are using Page Builder by SiteOrigin and SiteOrigin Widgets Bundle. We are using SiteOrigin Layout as a block in the WP editor.
    Lately whenever we go to edit a page we get “This block contains unexpected or invalid content”.
    I have tried:
    – clearing the cache
    – switching to TwentyTwenty theme
    – deactivating all other plugins except these two

    If we “attempt block recovery” it works – but only until we click save again. Every time we want to edit a page we have to recover the block. This is OK for me, but very frustrating and daunting for other people trying to edit content.

    Are you able to assist?
    Thanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Support Andrew Misplon

    (@misplon)

    Thanks for the wait. Do you know which Kadence plugin supplies the following widget?

    kad_imgmenu_widget

    I’m trying to further replicate the issue. I have Ascend installed (normal version) so I just need to fill in the blanks on the widgets now.

    Thread Starter littlebizonline

    (@littlebizonline)

    Thanks for your help on this.
    “Ascend: Image Menu Item” is the name of this widget – and it came with the theme. I am using the premium version… if it doesn’t come with the free version, let me know.

    Plugin Support Andrew Misplon

    (@misplon)

    Thanks. I can see the issue using Ascend Premium. We’ll investigate and let you know what we find.

    Plugin Support Andrew Misplon

    (@misplon)

    Thanks, we’ve confirmed the issue is the same as the issue here. The fix we applied in the pull request was for the SiteOrigin Editor widget. We’ll work on a solution for all widgets and keep you updated as we progress. The pages without issue probably don’t have links opening in a new tab.

    Thread Starter littlebizonline

    (@littlebizonline)

    Thanks for the update ??

    Plugin Contributor alexgso

    (@alexgso)

    Hi,

    We’ve identified that there are actually two issues with the layout you provided.

    The first issue is caused by how the Block Editor handles links set to open in new windows (known as targets) that aren’t crafted in a way to avoid a potential security issue. Some of the widgets added by the theme you’re using don’t account for these links so the saved page builder data is different to the data escaped by the Block Editor. When there’s a difference, the Block Editor flags the data like it’s doing for you. We’ve come up with a fix for this issue and it’ll be released in an upcoming update.

    Once the update has been released you can resolve this issue by opening an affected page, recovering the block, and hen making any change to the SiteOrigin Layout block – the easiest is to duplicate a widget and then delete the duplicated widget. This will regenerate the builder data with the applied fix. Save the page and reload, and the editor will work as expected. No action is required to fix new pages as the fix will be applied upon creating the SiteOrigin Layout block.

    The second issue is that you’re adding blocks inside of some of the widgets. We don’t support this at the moment so you’ll need to remove the blocks and the text directly. To do this please open the affected page and recover the layout. Open the first SiteOrigin Editor widget and open the Visual tab.

    • Copy all of the text
    • Remove all of the text
    • Paste the copied text using “Paste as Text”. This is done by pressing Shift + CTRL (or Command) V.

    If you’re having trouble with getting Paste as Text to work (as not all browsers support it), you can also paste the text into a text editor (such as Notepad), copy the pasted text, and then paste it back into the editor.

    Please repeat this process for the rest of the SiteOrigin Editor widgets and then save.

    Kind regards,
    Alex

    Plugin Contributor alexgso

    (@alexgso)

    Hi,

    Regarding the second point, it’s not clear how many of your layouts have blocks added to them so I’m not able to tell you which layouts need to be specifically edited. I can however state that if the fix for 1 doesn’t help for a page, you’ll need to complete the instructions outlined to resolve the second issue.

    Kind regards,
    Alex

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘This block contains unexpected or invalid content’ is closed to new replies.