ACP2E-4709: CMS pages do not save in Page Builder when the page hierarchy includes double quotes

The ACP2E-4709 patch fixes the issue where CMS pages fail to save in Page Builder when the page hierarchy includes double quotes. This patch is available when the Quality Patches Tool (QPT) 1.1.81 is installed. The patch ID is ACP2E-4709. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.7-p9

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.7 - 2.4.8-p5
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

CMS pages fail to save in Page Builder when the page hierarchy includes double quotes.

Prerequisites:

Page Builder is enabled.

Steps to reproduce:

  1. In the Admin sidebar, go to Stores > Settings > Configuration. In the left panel under General, choose Content Management.
  2. Expand CMS Page Hierarchy, set Enable Hierarchy Functionality to Yes, and click Save Config.
  3. In the Admin sidebar, go to Content > Elements > Pages and click Add New Page.
  4. Enter a page title that includes double quotes, place the page under the website root on the Hierarchy tab, and click Save.
  5. Use Page Builder to add content to the page, and click Save.

Expected results:

The new CMS page saves successfully without errors.

Actual results:

  • The new CMS page does not save.
  • The browser console displays the following error: Uncaught SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 1 column 79 of the JSON data.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools