ACP2E-5248: Admin users without Edit Product Status permission see deprecation error on Add Product page on PHP 8.5
The ACP2E-5248 patch fixes the issue where Admin users without the Edit Product Status permission see the null as array offset deprecation error when opening the Add Product page on PHP 8.5. This patch is available when the Quality Patches Tool (QPT) 1.1.86 is installed. The patch ID is ACP2E-5248. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.10.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.9
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 2.4.9
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
Admin users without the Edit Product Status permission see the null as array offset deprecation error when opening the Add Product page on PHP 8.5.
Prerequisites:
Adobe Commerce running on PHP 8.5
Steps to reproduce:
- In the Admin panel, go to System > Permissions > User Roles, and click Add New Role.
- On the Role Info tab, enter a Role Name and your password in Your Password.
- On the Role Resources tab, set Resource Access to Custom, select Catalog > Inventory > Products, clear Edit Product Status under it, and click Save Role.
- Go to System > Permissions > All Users, and click Add New User.
- Fill in the required fields on the User Info tab, select the new role on the User Role tab, and click Save User.
- Sign out, and sign in to the Admin panel as the new user.
- Go to Catalog > Products, and click Add Product.
Expected results:
The New Product page opens with the product form.
Actual results:
Instead of the product form, the New Product page shows a deprecated functionality error: Using null as an array offset is deprecated, use an empty string instead.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide