“Fatal error: You must enable the intl extension to use CakePHP”,
this error occurs when “php_intl.dll” is not enabled or “extension=php_intl.dll” is commented in php.ini file.
- “extension=php_intl.dll” is commented if there is semicolon present before “extension=php_intl.dll” – like – “;extension=php_intl.dll”.
- 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:
- In XAMP intl extension is included but we need to uncomment “
extension=php_intl.dll"
in php.ini file and restart the server. - 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.