soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Enabled Gutenberg Integration Breaks Code Blocks #2910

Open loyaltymatters-tobyc opened 2 years ago

loyaltymatters-tobyc commented 2 years ago

In Oxygen 4.0 when the Gutenberg Integration (version 1.4.1) is enabled for a page any code blocks do not work. They output broken encoded text instead of the result of running the code.

Deactivating the Gutenberg Integration plugin or unchecking the "Make this full page editable in Gutenberg" checkbox on the specific page stops the issue.

Sandbox link: https://oxygen-qyb9d75xwxdml.oxygen-demo.qsandbox.me/code-blocks/

The code in the code block on this page is:

<?php echo (new DateTime("now"))->format("Y-m-d H:i:s"); ?>

Spellhammer commented 2 years ago

Reproduced and reported internally. Should be fixed in an upcoming release aimed at addressing this and some other issues with 4.0.