M
M
Marat Ivanov2019-02-02 16:35:24
Yii
Marat Ivanov, 2019-02-02 16:35:24

How to remove yii2 startup error: Invalid Configuration - yii\base\InvalidConfigException?

When starting Yii2, the Contact page throws Invalid Configuration - yii\base\InvalidConfigException
Either GD PHP extension with FreeType support or ImageMagick PHP extension with PNG support is required. I'm new to this, please help me figure out how to set up yii2. Work on mac. local server built in (php -S localhost:8080).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Anisimov, 2019-02-02
@Blacknife

You have something connected in your configuration that requires one of the php extensions - GD or ImageMagick for its work, the error tells you that you need to install at least one of them, on the official php website you can read in great detail about installing these extensions :
GD: php.net/manual/ru/book.image.php
ImageMagick: php.net/manual/ru/book.imagick.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question