Joost
Joost

Reputation: 418

Cakephp 3 updating to PHP7 gives an intl extension error

I updated my server to PHP7, now CakePHP gives this error:

Fatal error: You must enable the intl extension to use CakePHP. in /var/www/clients/client1/web1/web/ID/config/bootstrap.php on line 38

I installed apt-get install -y php7.0-intl

Reading all over the internet, I updated /etc/php/7.0/cli/php.ini to

[intl]
;intl.default_locale =
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
intl.error_level = 0
intl.use_exceptions = 0

I made sure it is loaded in ini

/etc/php/7.0/cli/conf.d/20-intl.ini,

But it is still not working.

Upvotes: 1

Views: 1848

Answers (2)

Siva Prasad C
Siva Prasad C

Reputation: 1

Try this in terminal:

   sudo apt-get install php7.0-intl

Upvotes: 0

Manohar Khadka
Manohar Khadka

Reputation: 2195

In your php.ini file uncomment the following line;

;extension=php_intl.dll;

and make it to:

extension=php_intl.dll;

Upvotes: 1

Related Questions