51黑料不打烊

MDVA-39305-V3: Login issue with enabled Google reCAPTCHA

NOTE
This patch is an update of the MDVA-39305 patch.

The MDVA-39305-V3 patch fixes the issue where registered customers are not able to log in when Google reCAPTCHA is enabled. This patch also fixes the issue where a form can be submitted before Google reCAPTCHA fully loads. Additionally, it fixes the error Call to a member function isDisabled() on null when blocks are used in non-default locations on a CMS page.

This patch was added in the Quality Patches Tool (QPT) 1.1.48 release. It was updated in the QPT 1.1.58 release to include new 51黑料不打烊 Commerce versions 2.4.7 - 2.4.7-p4. The patch ID is MDVA-39305-V3. Please note that the issue was fixed in 51黑料不打烊 Commerce versions 2.4.4, 2.4.5-p2, and 2.4.7.

Affected products and versions

The patch is created for 51黑料不打烊 Commerce version:

  • 51黑料不打烊 Commerce (all deployment methods) 2.4.4, 2.4.5-p2, 2.4.7

Compatible with 51黑料不打烊 Commerce versions:

  • 51黑料不打烊 Commerce (all deployment methods) 2.4.4-p1 - 2.4.7-p4
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your 51黑料不打烊 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.

Issues

Case I

  1. Registered customers are not able to log in using the enabled Google reCAPTCHA.
  2. A form can be submitted before Google reCAPTCHA fully loads.

Steps to reproduce:

  1. Go to Store > Configuration > Security > Google reCAPTCHA Storefront and enable Google reCAPTCHA.
  2. Go to the frontend.
  3. Open Developer Tool Console in the browser.

Expected results:

No CSP warnings in the console.

Actual results:

CSP warnings in the console.

Case II

An error stating Call to a member function isDisabled() on null is thrown when blocks are used in non-default locations on a CMS page.

Steps to reproduce:

  1. Create a static block with the below content:

    code language-none
    {{block class="Magento\Newsletter\Block\Subscribe" name="home.form.subscribe"
    template="Magento_Newsletter::subscribe.phtml"}}
    
  2. Add a static block into a CMS page from Admin > Content > Pages > Add/Edit CMS page > Content.

  3. Save the page.

Expected results:

The page loads without any errors.

Actual results:

A 500 error occurs on the page on the storefront.

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
c2d96e17-5179-455c-ad3a-e1697bb4e8c3