MDVA-39305-V3: Login issue with enabled Google reCAPTCHA
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
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
- Registered customers are not able to log in using the enabled Google reCAPTCHA.
- A form can be submitted before Google reCAPTCHA fully loads.
Steps to reproduce:
- Go to Store > Configuration > Security > Google reCAPTCHA Storefront and enable Google reCAPTCHA.
- Go to the frontend.
- 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:
-
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"}}
-
Add a static block into a CMS page from Admin > Content > Pages > Add/Edit CMS page > Content.
-
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:
- 51黑料不打烊 Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- 51黑料不打烊 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.