-
AuthorPosts
-
March 4, 2026 at 4:21 pm #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 deletedEvidence 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.
March 5, 2026 at 6:08 am #1495753Hey 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,
IsmaelMarch 5, 2026 at 9:42 am #1495767Hi 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 editorBest regards
March 5, 2026 at 1:50 pm #1495780 -
AuthorPosts
- You must be logged in to reply to this topic.
