0

After update magento to 2.4.5 in di:compile I'm get error

Class "MSP\ReCaptcha\Model\LayoutSettings" does not exist

How can i fix it or use another recaptha in magento 2.4.5

3 Answers 3

0

You should use the Google reCAPTCHA module that is bundled and installed by default with Magento 2.3.x and later: https://docs.magento.com/user-guide/stores/security-google-recaptcha.html

And you should take a look at this post to know how to add MSP Recaptcha to Magento to remove it from your site: Magento 2 CMS page ReCAPTCHA showing fine but Validation Failed. How can I fix this issue?

1
  • If you still need help, feel free to let me know, I'll help.
    – Tu Van
    Nov 10, 2022 at 16:00
0

Please check this: Magento 2.4 Add Recaptcha in Custom From

In Magento 2.4.x MSP_ReCaptcha does not exist. You need to reimplement your customize code.

0

There are 2 ways you can solve this, firstly, you can remove MSP_ReCaptcha from config.xml in app/etc (Not Recommended) OR secondly, you can get it from composer packagist

composer require msp/recaptcha

And then, try to run di:compile

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.