Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3925

How do I install BotDetect captcha bundle on symfony 4.4?

$
0
0

I am trying to install BotDetect captcha bundle on a symfony 4.4 projectI followed all those steps :

  • I installed it with composer
  • configured the route in app/config/route.yaml
  • created a captcha.php config file for it
  • added the required captcha field in my FormType,
  • added getter and setter for CaptchaCode in entity and added the fields in the form view

but when I tried to access the form I get the following error :

Too few arguments to functionCaptcha\Bundle\CaptchaBundle\Form\Type\CaptchaType::__construct(), 0passed in C:\Users\tommy\Desktop\Stageavecnous\expertes-crm\vendor\symfony\form\FormRegistry.php on line 89and exactly 2 expected

I tried to add a new bundle instance into AppKernel.php and the error turns into :

ERROR: BotDetect requires the GD library and its support library:libpng, libjpeg and FreeType 2. You can read more aboutinstalling/enabling them at: http://php.net/manual/en/book.image.php.

I tried uncommenting the gd extension in php.ini and use composer require "ext-gd:*" --ignore-platform-reqs but it still doesn't work. I am lost and don't know what to do now.


Viewing all articles
Browse latest Browse all 3925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>