Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1495742

    Hi,

    We are running Enfold 7.1.4 on PHP 8.4.17 and are experiencing a critical bug where the Advanced Layout Builder silently truncates page content on save.

    Root cause identified: Enfold’s save routine sometimes strips closing tags when writing to _aviaLayoutBuilderCleanData postmeta. This creates unclosed tags in the stored data. On subsequent saves, Enfold’s shortcode parser encounters the unclosed tag and only processes/saves the content up to that point — everything after is silently deleted.

    Reproduction:

    Create a page with multiple textblocks containing bold text ()
    Edit and save the page several times in the visual ALB editor
    Check _aviaLayoutBuilderCleanData in the database — some closing tags are missing
    Save the page again — all content after the unclosed tag is deleted

    Evidence from our site:

    Post 152: 154 shortcode elements reduced to 16 on save (94,643 → 15,929 bytes). Cause: unclosed tag at position 8311 in cleandata.
    Post 1688: 7 unclosed
    tags found in cleandata, all introduced by the save routine.
    Post 14: post_content had balanced tags but _aviaLayoutBuilderCleanData had unclosed
    — proving the save routine is stripping the closing tag.
    Key observation: The visual editor shows the content correctly with proper bold formatting. The
    is present in the editor. But after save, _aviaLayoutBuilderCleanData is missing the closing tag. This means the bug is in Enfold’s content processing/save pipeline, not user error.

    Workaround: We are manually fixing the database by adding the missing tags to both post_content and _aviaLayoutBuilderCleanData, but the problem recurs on every edit.

    Request: Please investigate the ALB save routine that processes HTML within textblocks and ensure (and other closing tags) are preserved when writing to _aviaLayoutBuilderCleanData.

    Thank you.

    #1495753

    Hey nebuddlho,

    Thank you for the inquiry.

    This is the expected behavior, which is why there are warnings in the element fields to ensure that the html added to the builder is valid. Please review the content, specifically the html tags and make sure that all tags are properly closed and valid before saving the page.

    Let us know if you have any further questions.

    Best regards,
    Ismael

    #1495767

    Hi Ismael,

    Thank you for the response,

    The HTML is valid before save. The closing tags are present in the visual editor. After clicking Save, the _aviaLayoutBuilderCleanData postmeta is missing the tags that were there before.

    To be specific:

    I open a page in ALB editor — the textblock shows text (properly closed)
    I click Save
    I check _aviaLayoutBuilderCleanData in the database — the is gone
    I did not manually edit any HTML — I only used the visual editor

    Best regards

    #1495780

    Hi,

    You can activate debug mode under Enfold->Layout Builder->Show advanced Options, then check your shortcodes for the same amount of opening and closing strong tags. You can also edit the tags directly in the shortcode.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.