Fatal error: You must enable the intl extension to use CakePHP

Spread the love

“Fatal error: You must enable the intl extension to use CakePHP”,

In this post you will know how to deal with a problem of “php_intl.dll” error. Its a common error error occurs when implementing an application using Cakephp. Let’s see how to solve the problem of “php_intl.dll” error.

this error occurs when “php_intl.dll” is not enabled or “extension=php_intl.dll” is commented in php.ini file.

  1. “extension=php_intl.dll” is commented if there is semicolon present before “extension=php_intl.dll” – like – “;extension=php_intl.dll”.
  2. To enable “php_intl.dll” just remove semicolon before “;extension=php_intl.dll”. Now save and RESTART you server, like Wamp or Xampp, etc.

Important:

  1. In XAMP intl extension is included but we need to uncomment extension=php_intl.dll" in php.ini file and restart the server.
  2. In WAMP, by default, the intl extension is “activated” but not working. In order to make it work we have to go to PHP folder – default path –  C:wampbinphpphp{version}, copy all the files that look like icu*.dll and paste them into the apache bin directory C:wampbinapacheapache{version}bin. Then restart all the services.

Following above solutions, the error “Fatal error: You must enable the intl extension to use CakePHP.” should be gone.

Please try out.


start-links.dk


Spread the love

Leave a Comment