Answer the question
In order to leave comments, you need to log in
How to solve the problem with captcha in fucking yii2?
Installed basic yii2 application. On the page with the contact form, I see an error:
Either GD PHP extension with FreeType support or ImageMagick PHP extension with PNG support is required.
service php5.6-fpm restart
sudo service nginx restart
Answer the question
In order to leave comments, you need to log in
you need not just ImageMagick, but ImageMagick PHP extension with PNG support or GD with FreeType support
Yii has nothing to do with it, "fucking" - your server or hands
Here your problem has already been discussed https://github.com/yiisoft/yii2/issues /8252
When installing ImageMagick, you need to specify png support
Although I would not use the built-in captcha, but connected google captcha, but as a rule ImageMagick still does not hurt and, of course, png support is needed.
sudo apt-get install php-imagick
then service apache2 restart
for ubuntu on php7
normal yii2 - nothing to drive
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question