BTW I just rebuilt PHP 8 w/ PHP-FPM enabled and restarted PHP and that has fixed the above issue – you may have a bad PHP build – seems finicky with this version of ENFOLD.
WHEN I try to embed JAVASCRIPT – standard OPENTABLE WIDGET _ I am getting this same ERROR with PHP 8.0.26 and ENFOLD 5.3.1.1.
The advanced layout editor just spins and will not load until I remove the JAVASCRIPT via revisions.
Actually found out that the conflict is a plugin called Show-Hide/Collapse-Expand which breaks the editor in Enfold 4.5
I also use HTML code in portfolio EXCERPTS and it seems to have sanitized the HTML in the excerpts on the portfolio masonry, so that my rollovers are no longer functioning.