简体   繁体   中英

I got an error after install cakephp 3

Fatal error: You must enable the intl extension to use CakePHP. in D:\\wamp\\www\\cakephp\\config\\bootstrap.php on line 23 Call Stack

Time Memory Function Location

1 0.0000 136384 {main}( ) ..\\index.php:0 2 0.0000 163624 require( 'D:\\wamp\\www\\cakephp\\config\\bootstrap.php' ) ..\\index.php:27 3 0.0000 163784 trigger_error ( ) ..\\bootstrap.php:23

Go to the configuration file php.ini

search for extension=php_intl.dll and remove semicolon from here. Restart your server and you are done.

Update : According to the cakephp documentation

In WAMP, the intl extension is “activated” by default but not working. To make it work you have to go to php folder (by default) C:\\wamp\\bin\\php\\php{version}, copy all the files that looks like icu*.dll and paste them into the apache bin directory C:\\wamp\\bin\\apache\\apache{version}\\bin. Then restart all services and it should be OK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM