Friday, December 31, 2021

[FIXED] PHP Fatal error: You must enable the intl extension to use CakePHP. in C:\xampp\htdocs\Cakecrud\config\requirements.php on line 31

Issue

I have enabled both in php.ini

extension= intl
extension= php_intl.dll

Still the error is same when I run the command on cmd

Cake bake all students


Solution

It sounds like you might have added the intl exension to the wrong php.ini file.

It needs to be added to the web php.ini file, not cli.

To check what extensions are loaded for the web, write phpinfo();exit; in a PHP file then hit hit.

To see whats loaded in PHP cli (where you may have added it by mistake), run php -m at a terminal.



Answered By - aussieguy123

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.