E
E
edik892016-11-09 12:32:39
Yii
edik89, 2016-11-09 12:32:39

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.

PHP version 5.6. Installed the php5.6-gd libraries, ran the commands:
service php5.6-fpm restart
sudo service nginx restart

Does not help. I tried to install the php-imagick library - it does not help either. I see that these modules are installed using the php -m command or via phpinfo(). How can this problem be solved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2016-11-09
@webinar

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.

S
sinelnikof, 2020-04-22
@sinelnikof

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 question

Ask a Question

731 491 924 answers to any question